pub struct MessageId<'a>(/* private fields */);Implementations§
Source§impl<'a> MessageId<'a>
impl<'a> MessageId<'a>
pub const INTERNAL_LIB_VER: Self
pub const INTERNAL_BOARD_ID: Self
pub const INTERNAL_HEARTBEAT: Self
Sourcepub const INTERNAL_AM: Self
pub const INTERNAL_AM: Self
Announce writable ID’s
Sourcepub const INTERNAL_AM_LIST: Self
pub const INTERNAL_AM_LIST: Self
Delimit writable ID
Sourcepub const INTERNAL_AM_END: Self
pub const INTERNAL_AM_END: Self
End of writable ID’s
Sourcepub const INTERNAL_AV: Self
pub const INTERNAL_AV: Self
Send writable variables
pub const BOARD_NAME: Self
pub const fn new(id: &'a [u8]) -> Option<Self>
Sourcepub const unsafe fn new_unchecked(id: &'a [u8]) -> Self
pub const unsafe fn new_unchecked(id: &'a [u8]) -> Self
§Safety
Must follow the rules
pub const fn as_bytes(&self) -> &[u8]
pub fn as_str(&self) -> Result<&str, Utf8Error>
pub fn from_utf8(s: &'a str) -> Self
pub fn len(&self) -> usize
Trait Implementations§
Source§impl<'a> Ord for MessageId<'a>
impl<'a> Ord for MessageId<'a>
1.21.0 · 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<'a> PartialOrd for MessageId<'a>
impl<'a> PartialOrd for MessageId<'a>
impl<'a> Copy for MessageId<'a>
impl<'a> Eq for MessageId<'a>
impl<'a> StructuralPartialEq for MessageId<'a>
Auto Trait Implementations§
impl<'a> Freeze for MessageId<'a>
impl<'a> RefUnwindSafe for MessageId<'a>
impl<'a> Send for MessageId<'a>
impl<'a> Sync for MessageId<'a>
impl<'a> Unpin for MessageId<'a>
impl<'a> UnwindSafe for MessageId<'a>
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