Enum clacks_mtproto::mtproto::SetClientDHParamsAnswer
[−]
[src]
pub enum SetClientDHParamsAnswer { Ok(Ok), Retry(Retry), Fail(Fail), }
TL-derived from Set_client_DH_params_answer
dh_gen_ok#3bcbf734 nonce:int128 server_nonce:int128 new_nonce_hash1:int128 = Set_client_DH_params_answer;
dh_gen_retry#46dc1fb9 nonce:int128 server_nonce:int128 new_nonce_hash2:int128 = Set_client_DH_params_answer;
dh_gen_fail#a69dae02 nonce:int128 server_nonce:int128 new_nonce_hash3:int128 = Set_client_DH_params_answer;
Variants
Ok(Ok)
Retry(Retry)
Fail(Fail)
Methods
impl SetClientDHParamsAnswer
[src]
pub fn new_nonce_hash1(&self) -> Option<&int128>
[src]
pub fn new_nonce_hash2(&self) -> Option<&int128>
[src]
pub fn new_nonce_hash3(&self) -> Option<&int128>
[src]
pub fn nonce(&self) -> &int128
[src]
pub fn server_nonce(&self) -> &int128
[src]
Trait Implementations
impl Debug for SetClientDHParamsAnswer
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for SetClientDHParamsAnswer
[src]
fn clone(&self) -> SetClientDHParamsAnswer
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl BoxedSerialize for SetClientDHParamsAnswer
[src]
fn serialize_boxed<'this>(
&'this self
) -> (ConstructorNumber, &'this BareSerialize)
[src]
&'this self
) -> (ConstructorNumber, &'this BareSerialize)
fn boxed_serialized_bytes(&self) -> Result<Vec<u8>>
[src]
impl BoxedDeserialize for SetClientDHParamsAnswer
[src]
fn possible_constructors() -> Vec<ConstructorNumber>
[src]
fn deserialize_boxed(
_id: ConstructorNumber,
_de: &mut Deserializer
) -> Result<Self>
[src]
_id: ConstructorNumber,
_de: &mut Deserializer
) -> Result<Self>