pub struct HelloPacket {
pub network_mask: u32,
pub hello_interval: u32,
pub dead_interval: u32,
pub priority: u8,
pub options: u8,
pub designated_router: u32,
pub backup_dr: u32,
pub neighbors: Vec<u32>,
}Expand description
OSPF Hello packet
Fields§
§network_mask: u32Network mask of the interface
hello_interval: u32Hello interval in ticks
dead_interval: u32Router dead interval in ticks
priority: u8Router priority for DR election
options: u8Options field
designated_router: u32Designated Router ID
backup_dr: u32Backup Designated Router ID
neighbors: Vec<u32>List of neighbor router IDs seen on this interface
Implementations§
Source§impl HelloPacket
impl HelloPacket
Trait Implementations§
Source§impl Clone for HelloPacket
impl Clone for HelloPacket
Source§fn clone(&self) -> HelloPacket
fn clone(&self) -> HelloPacket
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HelloPacket
impl Debug for HelloPacket
Source§impl PartialEq for HelloPacket
impl PartialEq for HelloPacket
impl Eq for HelloPacket
impl StructuralPartialEq for HelloPacket
Auto Trait Implementations§
impl Freeze for HelloPacket
impl RefUnwindSafe for HelloPacket
impl Send for HelloPacket
impl Sync for HelloPacket
impl Unpin for HelloPacket
impl UnwindSafe for HelloPacket
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)