pub struct OspfNeighbor {
pub router_id: u32,
pub state: NeighborState,
pub address: Ipv4Address,
pub priority: u8,
pub last_hello: u64,
pub designated_router: u32,
pub backup_dr: u32,
}Expand description
OSPF neighbor entry
Fields§
§router_id: u32Neighbor’s router ID
state: NeighborStateCurrent neighbor state
address: Ipv4AddressNeighbor’s IP address
priority: u8Neighbor’s priority for DR election
last_hello: u64Tick when last Hello was received
designated_router: u32Neighbor’s Designated Router value
backup_dr: u32Neighbor’s Backup DR value
Trait Implementations§
Source§impl Clone for OspfNeighbor
impl Clone for OspfNeighbor
Source§fn clone(&self) -> OspfNeighbor
fn clone(&self) -> OspfNeighbor
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 OspfNeighbor
impl Debug for OspfNeighbor
Source§impl PartialEq for OspfNeighbor
impl PartialEq for OspfNeighbor
impl Eq for OspfNeighbor
impl StructuralPartialEq for OspfNeighbor
Auto Trait Implementations§
impl Freeze for OspfNeighbor
impl RefUnwindSafe for OspfNeighbor
impl Send for OspfNeighbor
impl Sync for OspfNeighbor
impl Unpin for OspfNeighbor
impl UnwindSafe for OspfNeighbor
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)