pub struct FdtEntry {
pub address: SocketAddrV4,
pub ttl: u16,
pub remaining: u16,
}Expand description
One row of a foreign device table as Read-Foreign-Device-Table-Ack returns it (Annex J.2.8.1): the registrant’s B/IP address, the time-to-live it registered with, and the seconds left before the BBMD purges it, which include the 30-second grace period of J.5.2.3.
Fields§
§address: SocketAddrV4The foreign device’s B/IP address.
ttl: u16The time-to-live, in seconds, the device registered with.
remaining: u16Seconds until the BBMD purges the entry.
Implementations§
Source§impl FdtEntry
impl FdtEntry
Sourcepub const fn new(address: SocketAddrV4, ttl: u16, remaining: u16) -> Self
pub const fn new(address: SocketAddrV4, ttl: u16, remaining: u16) -> Self
Construct an entry.
Sourcepub const fn to_octets(self) -> [u8; 10]
pub const fn to_octets(self) -> [u8; 10]
The entry’s ten wire octets: address, time-to-live, then remaining seconds.
Sourcepub const fn from_octets(octets: [u8; 10]) -> Self
pub const fn from_octets(octets: [u8; 10]) -> Self
The entry ten wire octets hold.
Trait Implementations§
impl Copy for FdtEntry
impl Eq for FdtEntry
impl StructuralPartialEq for FdtEntry
Auto Trait Implementations§
impl Freeze for FdtEntry
impl RefUnwindSafe for FdtEntry
impl Send for FdtEntry
impl Sync for FdtEntry
impl Unpin for FdtEntry
impl UnsafeUnpin for FdtEntry
impl UnwindSafe for FdtEntry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more