pub enum ForBbmd<'d> {
OriginalBroadcast(Delivery<'d>),
Forwarded {
sender: SocketAddrV4,
arrival: Arrival,
origin: SocketAddrV4,
npdu: &'d [u8],
},
Distribute {
sender: SocketAddrV4,
npdu: &'d [u8],
},
Management(Request),
}Expand description
The share of a message a BBMD acts on through
bbmd::Tables, once every node rule has passed.
Variants§
OriginalBroadcast(Delivery<'d>)
An Original-Broadcast-NPDU: deliver it, then forward it
(Tables::original_broadcast).
Forwarded
A Forwarded-NPDU: Tables::forwarded_npdu
decides whether it is delivered and where it goes.
Fields
§
sender: SocketAddrV4The BBMD that sent it.
§
origin: SocketAddrV4Its originating address, the NPDU’s source.
Distribute
A Distribute-Broadcast-To-Network:
Tables::distribute_broadcast,
and its NAK on refusal.
Management(Request)
A request for the BBMD’s tables (Register-Foreign-Device, the two
table reads, Delete-Foreign-Device-Table-Entry), which
Tables::serve answers.
Trait Implementations§
impl<'d> Copy for ForBbmd<'d>
impl<'d> Eq for ForBbmd<'d>
impl<'d> StructuralPartialEq for ForBbmd<'d>
Auto Trait Implementations§
impl<'d> Freeze for ForBbmd<'d>
impl<'d> RefUnwindSafe for ForBbmd<'d>
impl<'d> Send for ForBbmd<'d>
impl<'d> Sync for ForBbmd<'d>
impl<'d> Unpin for ForBbmd<'d>
impl<'d> UnsafeUnpin for ForBbmd<'d>
impl<'d> UnwindSafe for ForBbmd<'d>
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