pub struct PeerChannel {
pub channel_id: i64,
}Expand description
Fields§
§channel_id: i64Trait Implementations§
Source§impl Clone for PeerChannel
impl Clone for PeerChannel
Source§fn clone(&self) -> PeerChannel
fn clone(&self) -> PeerChannel
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 PeerChannel
impl Debug for PeerChannel
Source§impl Deserializable for PeerChannel
impl Deserializable for PeerChannel
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<PeerChannel> for Peer
impl From<PeerChannel> for Peer
Source§fn from(x: PeerChannel) -> Self
fn from(x: PeerChannel) -> Self
Converts to this type from the input type.
Source§impl Identifiable for PeerChannel
impl Identifiable for PeerChannel
Source§const CONSTRUCTOR_ID: u32 = 0xa2a5371e
const CONSTRUCTOR_ID: u32 = 0xa2a5371e
The constructor ID as specified in the TL schema.
Source§impl PartialEq for PeerChannel
impl PartialEq for PeerChannel
Source§impl Serializable for PeerChannel
impl Serializable for PeerChannel
Source§impl TryFrom<Peer> for PeerChannel
impl TryFrom<Peer> for PeerChannel
impl StructuralPartialEq for PeerChannel
Auto Trait Implementations§
impl Freeze for PeerChannel
impl RefUnwindSafe for PeerChannel
impl Send for PeerChannel
impl Sync for PeerChannel
impl Unpin for PeerChannel
impl UnsafeUnpin for PeerChannel
impl UnwindSafe for PeerChannel
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