pub struct NetOutgoingMeta {
pub source: bool,
pub ttl: Ttl,
pub meta: u8,
pub secure: bool,
}Fields§
§source: bool§ttl: Ttl§meta: u8§secure: boolImplementations§
Source§impl NetOutgoingMeta
impl NetOutgoingMeta
pub fn new(source: bool, ttl: Ttl, meta: u8, secure: bool) -> NetOutgoingMeta
pub fn secure() -> NetOutgoingMeta
pub fn to_header( &self, feature: u8, rule: RouteRule, node_id: u32, ) -> TransportMsgHeader
pub fn to_incoming(&self, node_id: u32) -> NetIncomingMeta
Trait Implementations§
Source§impl Clone for NetOutgoingMeta
impl Clone for NetOutgoingMeta
Source§fn clone(&self) -> NetOutgoingMeta
fn clone(&self) -> NetOutgoingMeta
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NetOutgoingMeta
impl Debug for NetOutgoingMeta
Source§impl Default for NetOutgoingMeta
impl Default for NetOutgoingMeta
Source§fn default() -> NetOutgoingMeta
fn default() -> NetOutgoingMeta
Returns the “default value” for a type. Read more
Source§impl PartialEq for NetOutgoingMeta
impl PartialEq for NetOutgoingMeta
impl Eq for NetOutgoingMeta
impl StructuralPartialEq for NetOutgoingMeta
Auto Trait Implementations§
impl Freeze for NetOutgoingMeta
impl RefUnwindSafe for NetOutgoingMeta
impl Send for NetOutgoingMeta
impl Sync for NetOutgoingMeta
impl Unpin for NetOutgoingMeta
impl UnwindSafe for NetOutgoingMeta
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