pub enum NotifyPeer {
NotifyPeer(NotifyPeer),
NotifyUsers,
NotifyChats,
NotifyBroadcasts,
NotifyForumTopic(NotifyForumTopic),
}Expand description
Variants§
Trait Implementations§
Source§impl Clone for NotifyPeer
impl Clone for NotifyPeer
Source§fn clone(&self) -> NotifyPeer
fn clone(&self) -> NotifyPeer
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 NotifyPeer
impl Debug for NotifyPeer
Source§impl Deserializable for NotifyPeer
impl Deserializable for NotifyPeer
Source§fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
Read
Self from buf, advancing its position.Source§fn from_bytes(bytes: &[u8]) -> Result<Self>
fn from_bytes(bytes: &[u8]) -> Result<Self>
Convenience: deserialize from a byte slice.
Source§impl From<NotifyBroadcasts> for NotifyPeer
impl From<NotifyBroadcasts> for NotifyPeer
Source§fn from(_x: NotifyBroadcasts) -> Self
fn from(_x: NotifyBroadcasts) -> Self
Converts to this type from the input type.
Source§impl From<NotifyChats> for NotifyPeer
impl From<NotifyChats> for NotifyPeer
Source§fn from(_x: NotifyChats) -> Self
fn from(_x: NotifyChats) -> Self
Converts to this type from the input type.
Source§impl From<NotifyForumTopic> for NotifyPeer
impl From<NotifyForumTopic> for NotifyPeer
Source§fn from(x: NotifyForumTopic) -> Self
fn from(x: NotifyForumTopic) -> Self
Converts to this type from the input type.
Source§impl From<NotifyPeer> for NotifyPeer
impl From<NotifyPeer> for NotifyPeer
Source§fn from(x: NotifyPeer) -> Self
fn from(x: NotifyPeer) -> Self
Converts to this type from the input type.
Source§impl From<NotifyUsers> for NotifyPeer
impl From<NotifyUsers> for NotifyPeer
Source§fn from(_x: NotifyUsers) -> Self
fn from(_x: NotifyUsers) -> Self
Converts to this type from the input type.
Source§impl PartialEq for NotifyPeer
impl PartialEq for NotifyPeer
Source§impl Serializable for NotifyPeer
impl Serializable for NotifyPeer
Source§impl TryFrom<NotifyPeer> for NotifyForumTopic
impl TryFrom<NotifyPeer> for NotifyForumTopic
Source§type Error = NotifyPeer
type Error = NotifyPeer
The type returned in the event of a conversion error.
Source§impl TryFrom<NotifyPeer> for NotifyPeer
impl TryFrom<NotifyPeer> for NotifyPeer
Source§type Error = NotifyPeer
type Error = NotifyPeer
The type returned in the event of a conversion error.
impl StructuralPartialEq for NotifyPeer
Auto Trait Implementations§
impl Freeze for NotifyPeer
impl RefUnwindSafe for NotifyPeer
impl Send for NotifyPeer
impl Sync for NotifyPeer
impl Unpin for NotifyPeer
impl UnsafeUnpin for NotifyPeer
impl UnwindSafe for NotifyPeer
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