pub struct EndpointMeta { /* private fields */ }Implementations§
Source§impl EndpointMeta
impl EndpointMeta
Sourcepub fn as_str(&self) -> &'static str
pub fn as_str(&self) -> &'static str
Return a stable string representation used in logs and in
Packet::to_string() output.
This should remain stable over time for compatibility with tests and external tooling.
Sourcepub fn description(&self) -> &'static str
pub fn description(&self) -> &'static str
Return the human-readable endpoint description.
Sourcepub fn is_link_local_only(&self) -> bool
pub fn is_link_local_only(&self) -> bool
Return whether this endpoint is restricted to link-local/software-bus sides.
Trait Implementations§
Source§impl Clone for EndpointMeta
impl Clone for EndpointMeta
Source§fn clone(&self) -> EndpointMeta
fn clone(&self) -> EndpointMeta
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 EndpointMeta
Source§impl Debug for EndpointMeta
impl Debug for EndpointMeta
impl Eq for EndpointMeta
Source§impl Hash for EndpointMeta
impl Hash for EndpointMeta
Source§impl Ord for EndpointMeta
impl Ord for EndpointMeta
Source§fn cmp(&self, other: &EndpointMeta) -> Ordering
fn cmp(&self, other: &EndpointMeta) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for EndpointMeta
impl PartialEq for EndpointMeta
Source§fn eq(&self, other: &EndpointMeta) -> bool
fn eq(&self, other: &EndpointMeta) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for EndpointMeta
impl PartialOrd for EndpointMeta
impl StructuralPartialEq for EndpointMeta
Auto Trait Implementations§
impl Freeze for EndpointMeta
impl RefUnwindSafe for EndpointMeta
impl Send for EndpointMeta
impl Sync for EndpointMeta
impl Unpin for EndpointMeta
impl UnsafeUnpin for EndpointMeta
impl UnwindSafe for EndpointMeta
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