pub enum Message<'tl> {
Answer {
query_id: HashRef<'tl>,
answer: &'tl [u8],
},
Custom {
data: &'tl [u8],
},
ConfirmChannel {
key: HashRef<'tl>,
peer_key: HashRef<'tl>,
date: u32,
},
Part {
hash: HashRef<'tl>,
total_size: u32,
offset: u32,
data: &'tl [u8],
},
CreateChannel {
key: HashRef<'tl>,
date: u32,
},
Query {
query_id: HashRef<'tl>,
query: &'tl [u8],
},
Nop,
Reinit {
date: u32,
},
}Variants§
Implementations§
Source§impl<'tl> Message<'tl>
impl<'tl> Message<'tl>
pub const TL_ID_ANSWER: u32 = 262_964_246u32
pub const TL_ID_CUSTOM: u32 = 541_595_893u32
pub const TL_ID_CONFIRM_CHANNEL: u32 = 1_625_103_721u32
pub const TL_ID_PART: u32 = 4_249_169_209u32
pub const TL_ID_CREATE_CHANNEL: u32 = 3_866_346_427u32
pub const TL_ID_QUERY: u32 = 3_029_072_250u32
pub const TL_ID_NOP: u32 = 402_186_202u32
pub const TL_ID_REINIT: u32 = 281_150_752u32
Trait Implementations§
impl<'tl> Copy for Message<'tl>
Auto Trait Implementations§
impl<'tl> Freeze for Message<'tl>
impl<'tl> RefUnwindSafe for Message<'tl>
impl<'tl> Send for Message<'tl>
impl<'tl> Sync for Message<'tl>
impl<'tl> Unpin for Message<'tl>
impl<'tl> UnwindSafe for Message<'tl>
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