pub enum Message<'tl> {
Message {
id: HashRef<'tl>,
data: &'tl [u8],
},
Answer {
query_id: HashRef<'tl>,
data: &'tl [u8],
},
Query {
query_id: HashRef<'tl>,
max_answer_size: u64,
timeout: u32,
data: &'tl [u8],
},
}Variants§
Implementations§
Source§impl<'tl> Message<'tl>
impl<'tl> Message<'tl>
pub const TL_ID_MESSAGE: u32 = 2_098_973_982u32
pub const TL_ID_ANSWER: u32 = 2_751_224_835u32
pub const TL_ID_QUERY: u32 = 2_323_205_481u32
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