pub struct DhConfig {
pub g: i32,
pub p: Vec<u8>,
pub version: i32,
pub random: Vec<u8>,
}Expand description
Generated from:
messages.dhConfig#2c221edd g:int p:bytes version:int random:bytes = messages.DhConfigFields§
§g: i32§p: Vec<u8>§version: i32§random: Vec<u8>Trait Implementations§
Source§impl Deserializable for DhConfig
impl Deserializable for DhConfig
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 DhConfig
impl Identifiable for DhConfig
Source§const CONSTRUCTOR_ID: u32 = 0x2c221edd
const CONSTRUCTOR_ID: u32 = 0x2c221edd
The constructor ID as specified in the TL schema.
Source§impl Serializable for DhConfig
impl Serializable for DhConfig
impl StructuralPartialEq for DhConfig
Auto Trait Implementations§
impl Freeze for DhConfig
impl RefUnwindSafe for DhConfig
impl Send for DhConfig
impl Sync for DhConfig
impl Unpin for DhConfig
impl UnsafeUnpin for DhConfig
impl UnwindSafe for DhConfig
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