#[repr(transparent)]pub struct DataEndpoint(pub u32);Tuple Fields§
§0: u32Implementations§
Source§impl DataEndpoint
impl DataEndpoint
pub const TIME_SYNC: Self
pub const DISCOVERY: Self
pub const TELEMETRY_ERROR: Self
pub const TelemetryError: Self = Self::TELEMETRY_ERROR
pub const TimeSync: Self = Self::TIME_SYNC
pub const Discovery: Self = Self::DISCOVERY
pub const fn as_u32(self) -> u32
pub fn try_from_u32(x: u32) -> Option<Self>
pub fn try_named(name: &str) -> Option<Self>
pub fn named(name: &str) -> Self
Source§impl DataEndpoint
impl DataEndpoint
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 DataEndpoint
impl Clone for DataEndpoint
Source§fn clone(&self) -> DataEndpoint
fn clone(&self) -> DataEndpoint
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 DataEndpoint
Source§impl Debug for DataEndpoint
impl Debug for DataEndpoint
impl Eq for DataEndpoint
Source§impl Hash for DataEndpoint
impl Hash for DataEndpoint
Source§impl Ord for DataEndpoint
impl Ord for DataEndpoint
Source§fn cmp(&self, other: &DataEndpoint) -> Ordering
fn cmp(&self, other: &DataEndpoint) -> 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 DataEndpoint
impl PartialEq for DataEndpoint
Source§fn eq(&self, other: &DataEndpoint) -> bool
fn eq(&self, other: &DataEndpoint) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for DataEndpoint
impl PartialOrd for DataEndpoint
impl StructuralPartialEq for DataEndpoint
Auto Trait Implementations§
impl Freeze for DataEndpoint
impl RefUnwindSafe for DataEndpoint
impl Send for DataEndpoint
impl Sync for DataEndpoint
impl Unpin for DataEndpoint
impl UnsafeUnpin for DataEndpoint
impl UnwindSafe for DataEndpoint
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