pub struct MessageTypeId(pub TypeId);Expand description
The type id of the message.
Tuple Fields§
§0: TypeIdImplementations§
Source§impl MessageTypeId
impl MessageTypeId
Sourcepub fn of<M: Message>() -> Self
pub fn of<M: Message>() -> Self
Gets the MessageTypeId of the given generic type.
Trait Implementations§
Source§impl Clone for MessageTypeId
impl Clone for MessageTypeId
Source§fn clone(&self) -> MessageTypeId
fn clone(&self) -> MessageTypeId
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MessageTypeId
impl Debug for MessageTypeId
Source§impl Hash for MessageTypeId
impl Hash for MessageTypeId
Source§impl Ord for MessageTypeId
impl Ord for MessageTypeId
Source§fn cmp(&self, other: &MessageTypeId) -> Ordering
fn cmp(&self, other: &MessageTypeId) -> Ordering
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 PartialEq for MessageTypeId
impl PartialEq for MessageTypeId
Source§impl PartialOrd for MessageTypeId
impl PartialOrd for MessageTypeId
impl Copy for MessageTypeId
impl Eq for MessageTypeId
impl StructuralPartialEq for MessageTypeId
Auto Trait Implementations§
impl Freeze for MessageTypeId
impl RefUnwindSafe for MessageTypeId
impl Send for MessageTypeId
impl Sync for MessageTypeId
impl Unpin for MessageTypeId
impl UnwindSafe for MessageTypeId
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