pub struct IpPort {
pub ipv4: i32,
pub port: i32,
}Expand description
Fields§
§ipv4: i32§port: i32Trait Implementations§
Source§impl Deserializable for IpPort
impl Deserializable for IpPort
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 Identifiable for IpPort
impl Identifiable for IpPort
Source§const CONSTRUCTOR_ID: u32 = 0xd433ad73
const CONSTRUCTOR_ID: u32 = 0xd433ad73
The constructor ID as specified in the TL schema.
Source§impl Serializable for IpPort
impl Serializable for IpPort
impl StructuralPartialEq for IpPort
Auto Trait Implementations§
impl Freeze for IpPort
impl RefUnwindSafe for IpPort
impl Send for IpPort
impl Sync for IpPort
impl Unpin for IpPort
impl UnsafeUnpin for IpPort
impl UnwindSafe for IpPort
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