pub enum RequestPeerType {
User(RequestPeerTypeUser),
Chat(RequestPeerTypeChat),
Broadcast(RequestPeerTypeBroadcast),
}Expand description
Variants§
Trait Implementations§
Source§impl Clone for RequestPeerType
impl Clone for RequestPeerType
Source§fn clone(&self) -> RequestPeerType
fn clone(&self) -> RequestPeerType
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 RequestPeerType
impl Debug for RequestPeerType
Source§impl Deserializable for RequestPeerType
impl Deserializable for RequestPeerType
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<RequestPeerTypeBroadcast> for RequestPeerType
impl From<RequestPeerTypeBroadcast> for RequestPeerType
Source§fn from(x: RequestPeerTypeBroadcast) -> Self
fn from(x: RequestPeerTypeBroadcast) -> Self
Converts to this type from the input type.
Source§impl From<RequestPeerTypeChat> for RequestPeerType
impl From<RequestPeerTypeChat> for RequestPeerType
Source§fn from(x: RequestPeerTypeChat) -> Self
fn from(x: RequestPeerTypeChat) -> Self
Converts to this type from the input type.
Source§impl From<RequestPeerTypeUser> for RequestPeerType
impl From<RequestPeerTypeUser> for RequestPeerType
Source§fn from(x: RequestPeerTypeUser) -> Self
fn from(x: RequestPeerTypeUser) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RequestPeerType
impl PartialEq for RequestPeerType
Source§impl Serializable for RequestPeerType
impl Serializable for RequestPeerType
Source§impl TryFrom<RequestPeerType> for RequestPeerTypeBroadcast
impl TryFrom<RequestPeerType> for RequestPeerTypeBroadcast
Source§type Error = RequestPeerType
type Error = RequestPeerType
The type returned in the event of a conversion error.
Source§impl TryFrom<RequestPeerType> for RequestPeerTypeChat
impl TryFrom<RequestPeerType> for RequestPeerTypeChat
Source§type Error = RequestPeerType
type Error = RequestPeerType
The type returned in the event of a conversion error.
Source§impl TryFrom<RequestPeerType> for RequestPeerTypeUser
impl TryFrom<RequestPeerType> for RequestPeerTypeUser
Source§type Error = RequestPeerType
type Error = RequestPeerType
The type returned in the event of a conversion error.
impl StructuralPartialEq for RequestPeerType
Auto Trait Implementations§
impl Freeze for RequestPeerType
impl RefUnwindSafe for RequestPeerType
impl Send for RequestPeerType
impl Sync for RequestPeerType
impl Unpin for RequestPeerType
impl UnsafeUnpin for RequestPeerType
impl UnwindSafe for RequestPeerType
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