pub enum Received<'d> {
Deliver(Delivery<'d>),
Nak {
to: SocketAddrV4,
code: BvlcResultCode,
malformed: bool,
},
Response(Response<'d>),
Bbmd(ForBbmd<'d>),
Discarded(Discard),
}Expand description
What to do with a received datagram. Each borrows the datagram, not the link, so a host can act on it after releasing any lock.
Variants§
Deliver(Delivery<'d>)
Hand an NPDU up to the network layer.
Nak
Send a BVLC-Result with code to to: the NAK for a BBMD-only
request this node doesn’t serve (Annex J.2.1).
Fields
§
to: SocketAddrV4Where the NAK goes: the request’s source.
§
code: BvlcResultCodeThe request’s own NAK.
Response(Response<'d>)
A BVLC-Result or table ACK, for Node::resolve
to match against this node’s own requests.
Bbmd(ForBbmd<'d>)
The BBMD’s share of a message: Mode::Bbmd only.
Discarded(Discard)
Dropped, for this reason.
Trait Implementations§
impl<'d> Copy for Received<'d>
impl<'d> Eq for Received<'d>
impl<'d> StructuralPartialEq for Received<'d>
Auto Trait Implementations§
impl<'d> Freeze for Received<'d>
impl<'d> RefUnwindSafe for Received<'d>
impl<'d> Send for Received<'d>
impl<'d> Sync for Received<'d>
impl<'d> Unpin for Received<'d>
impl<'d> UnsafeUnpin for Received<'d>
impl<'d> UnwindSafe for Received<'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