pub enum PeerKind {
User,
UserSelf,
Chat,
Channel,
}Expand description
PeerId’s kind.
The PeerId bitpacks this information for size reasons.
Variants§
User
The peer identity belongs to a tl::enums::User. May also represent PeerKind::UserSelf.
UserSelf
The peer identity belongs to a user with its tl::types::User::is_self flag set to true.
Chat
The peer identity belongs to a tl::types::Chat or one of its derivatives.
Channel
The peer identity belongs to a tl::types::Channel or one of its derivatives.
Trait Implementations§
impl Copy for PeerKind
impl Eq for PeerKind
impl StructuralPartialEq for PeerKind
Auto Trait Implementations§
impl Freeze for PeerKind
impl RefUnwindSafe for PeerKind
impl Send for PeerKind
impl Sync for PeerKind
impl Unpin for PeerKind
impl UnsafeUnpin for PeerKind
impl UnwindSafe for PeerKind
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