Struct grammers_mtproto::MsgId
source · pub struct MsgId(/* private fields */);
Expand description
A Message Identifier.
When requests are enqueued, a new associated message identifier is
returned. As server responses get processed, some of them will be a
response to a previous request. You can now pop_response
to get
all the server responses, and if one matches your original identifier,
you will know the response corresponds to it.
Trait Implementations§
source§impl Ord for MsgId
impl Ord for MsgId
source§impl PartialEq for MsgId
impl PartialEq for MsgId
source§impl PartialOrd for MsgId
impl PartialOrd for MsgId
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy 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