pub struct ServerDhParamsOk {
pub nonce: [u8; 16],
pub server_nonce: [u8; 16],
pub encrypted_answer: Vec<u8>,
}Expand description
Generated from:
server_DH_params_ok#d0e8075c nonce:int128 server_nonce:int128 encrypted_answer:bytes = Server_DH_ParamsFields§
§nonce: [u8; 16]§server_nonce: [u8; 16]§encrypted_answer: Vec<u8>Trait Implementations§
Source§impl Clone for ServerDhParamsOk
impl Clone for ServerDhParamsOk
Source§fn clone(&self) -> ServerDhParamsOk
fn clone(&self) -> ServerDhParamsOk
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 ServerDhParamsOk
impl Debug for ServerDhParamsOk
Source§impl Deserializable for ServerDhParamsOk
impl Deserializable for ServerDhParamsOk
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<ServerDhParamsOk> for ServerDhParams
impl From<ServerDhParamsOk> for ServerDhParams
Source§fn from(x: ServerDhParamsOk) -> Self
fn from(x: ServerDhParamsOk) -> Self
Converts to this type from the input type.
Source§impl Identifiable for ServerDhParamsOk
impl Identifiable for ServerDhParamsOk
Source§const CONSTRUCTOR_ID: u32 = 0xd0e8075c
const CONSTRUCTOR_ID: u32 = 0xd0e8075c
The constructor ID as specified in the TL schema.
Source§impl PartialEq for ServerDhParamsOk
impl PartialEq for ServerDhParamsOk
Source§impl Serializable for ServerDhParamsOk
impl Serializable for ServerDhParamsOk
Source§impl TryFrom<ServerDhParams> for ServerDhParamsOk
impl TryFrom<ServerDhParams> for ServerDhParamsOk
Source§type Error = ServerDhParams
type Error = ServerDhParams
The type returned in the event of a conversion error.
impl StructuralPartialEq for ServerDhParamsOk
Auto Trait Implementations§
impl Freeze for ServerDhParamsOk
impl RefUnwindSafe for ServerDhParamsOk
impl Send for ServerDhParamsOk
impl Sync for ServerDhParamsOk
impl Unpin for ServerDhParamsOk
impl UnsafeUnpin for ServerDhParamsOk
impl UnwindSafe for ServerDhParamsOk
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