Struct grammers_mtproto::transport::Intermediate
source · pub struct Intermediate { /* private fields */ }
Expand description
A light MTProto transport protocol available that guarantees data padded to 4 bytes. This is an implementation of the intermediate transport.
- Overhead: small.
- Minimum envelope length: 4 bytes.
- Maximum envelope length: 4 bytes.
It serializes the input payload as follows:
+----+----...----+
| len| payload |
+----+----...----+
^^^^ 4 bytes
Implementations§
source§impl Intermediate
impl Intermediate
Trait Implementations§
source§impl Transport for Intermediate
impl Transport for Intermediate
Auto Trait Implementations§
impl Freeze for Intermediate
impl RefUnwindSafe for Intermediate
impl Send for Intermediate
impl Sync for Intermediate
impl Unpin for Intermediate
impl UnwindSafe for Intermediate
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