Struct grammers_mtproto::mtp::Encrypted
source · pub struct Encrypted { /* private fields */ }
Expand description
An implementation of the Mobile Transport Protocol for ciphertext (encrypted) messages.
Implementations§
Trait Implementations§
source§impl Mtp for Encrypted
impl Mtp for Encrypted
source§fn push(&mut self, buffer: &mut RingBuffer<u8>, request: &[u8]) -> Option<MsgId>
fn push(&mut self, buffer: &mut RingBuffer<u8>, request: &[u8]) -> Option<MsgId>
Pushes a request into the internal buffer by manually serializing the messages for maximum
efficiency. If the buffer is full, returns None
.
source§fn deserialize(
&mut self,
payload: &[u8]
) -> Result<Deserialization, DeserializeError>
fn deserialize( &mut self, payload: &[u8] ) -> Result<Deserialization, DeserializeError>
Processes an encrypted response from the server.
Auto Trait Implementations§
impl Freeze for Encrypted
impl RefUnwindSafe for Encrypted
impl Send for Encrypted
impl Sync for Encrypted
impl Unpin for Encrypted
impl UnwindSafe for Encrypted
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