pub struct PhoneConnection {
pub tcp: bool,
pub id: i64,
pub ip: String,
pub ipv6: String,
pub port: i32,
pub peer_tag: Vec<u8>,
}Expand description
Generated from:
phoneConnection#9cc123c7 flags:# tcp:flags.0?true id:long ip:string ipv6:string port:int peer_tag:bytes = PhoneConnectionFields§
§tcp: bool§id: i64§ip: String§ipv6: String§port: i32§peer_tag: Vec<u8>Trait Implementations§
Source§impl Clone for PhoneConnection
impl Clone for PhoneConnection
Source§fn clone(&self) -> PhoneConnection
fn clone(&self) -> PhoneConnection
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 PhoneConnection
impl Debug for PhoneConnection
Source§impl Deserializable for PhoneConnection
impl Deserializable for PhoneConnection
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<PhoneConnection> for PhoneConnection
impl From<PhoneConnection> for PhoneConnection
Source§fn from(x: PhoneConnection) -> Self
fn from(x: PhoneConnection) -> Self
Converts to this type from the input type.
Source§impl Identifiable for PhoneConnection
impl Identifiable for PhoneConnection
Source§const CONSTRUCTOR_ID: u32 = 0x9cc123c7
const CONSTRUCTOR_ID: u32 = 0x9cc123c7
The constructor ID as specified in the TL schema.
Source§impl PartialEq for PhoneConnection
impl PartialEq for PhoneConnection
Source§impl Serializable for PhoneConnection
impl Serializable for PhoneConnection
Source§impl TryFrom<PhoneConnection> for PhoneConnection
impl TryFrom<PhoneConnection> for PhoneConnection
Source§type Error = PhoneConnection
type Error = PhoneConnection
The type returned in the event of a conversion error.
impl StructuralPartialEq for PhoneConnection
Auto Trait Implementations§
impl Freeze for PhoneConnection
impl RefUnwindSafe for PhoneConnection
impl Send for PhoneConnection
impl Sync for PhoneConnection
impl Unpin for PhoneConnection
impl UnsafeUnpin for PhoneConnection
impl UnwindSafe for PhoneConnection
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