pub struct MsgId(/* private fields */);
Expand description
A message ID
Implementations§
Source§impl MsgId
impl MsgId
Sourcepub fn from_static(raw: &'static str) -> Self
pub fn from_static(raw: &'static str) -> Self
Constructs a newMsgIdfrom a static reference
Sourcepub fn into_boxed_ref(self) -> Box<MsgIdRef>
pub fn into_boxed_ref(self) -> Box<MsgIdRef>
Converts this MsgId
into a Box<MsgIdRef>
This will drop any excess capacity.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MsgId
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for MsgId
Available on crate feature
serde
only.Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for MsgId
impl Ord for MsgId
Source§impl PartialOrd for MsgId
impl PartialOrd for MsgId
impl Eq for MsgId
impl StructuralPartialEq for MsgId
Auto Trait Implementations§
impl Freeze for MsgId
impl RefUnwindSafe for MsgId
impl Send for MsgId
impl Sync for MsgId
impl Unpin for MsgId
impl UnwindSafe for MsgId
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)