#[repr(C)]pub enum PamojaForward {
Deliver = 0,
Relay = 1,
Flood = 2,
}Expand description
What to do with a packet bound for a given node.
Variants§
Deliver = 0
The packet is for this node; hand it to the application.
Relay = 1
A route is known; unicast the packet to the next hop reported alongside.
Flood = 2
No route is known; fall back to flooding the packet.
Trait Implementations§
Source§impl Clone for PamojaForward
impl Clone for PamojaForward
Source§fn clone(&self) -> PamojaForward
fn clone(&self) -> PamojaForward
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PamojaForward
Source§impl Debug for PamojaForward
impl Debug for PamojaForward
impl Eq for PamojaForward
Source§impl PartialEq for PamojaForward
impl PartialEq for PamojaForward
Source§fn eq(&self, other: &PamojaForward) -> bool
fn eq(&self, other: &PamojaForward) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PamojaForward
Auto Trait Implementations§
impl Freeze for PamojaForward
impl RefUnwindSafe for PamojaForward
impl Send for PamojaForward
impl Sync for PamojaForward
impl Unpin for PamojaForward
impl UnsafeUnpin for PamojaForward
impl UnwindSafe for PamojaForward
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