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<'a> Arbitrary<'a> for MsgId
Available on crate feature arbitrary
only.
impl<'a> Arbitrary<'a> for MsgId
Available on crate feature
arbitrary
only.Source§fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self, Error>
fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self, Error>
Generate an arbitrary value of
Self
from the given unstructured data. Read moreSource§fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. Read moreSource§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