pub enum MessagePart<'tl> {
MessagePart {
transfer_id: HashRef<'tl>,
fec_type: RaptorQFecType,
part: u32,
total_size: u64,
seqno: u32,
data: &'tl [u8],
},
Confirm {
transfer_id: HashRef<'tl>,
part: u32,
seqno: u32,
},
Complete {
transfer_id: HashRef<'tl>,
part: u32,
},
}Variants§
Implementations§
Source§impl<'tl> MessagePart<'tl>
impl<'tl> MessagePart<'tl>
pub const TL_ID_MESSAGE_PART: u32 = 408_691_404u32
pub const TL_ID_CONFIRM: u32 = 4_118_994_008u32
pub const TL_ID_COMPLETE: u32 = 3_154_948_799u32
Trait Implementations§
Source§impl<'tl> Clone for MessagePart<'tl>
impl<'tl> Clone for MessagePart<'tl>
Source§fn clone(&self) -> MessagePart<'tl>
fn clone(&self) -> MessagePart<'tl>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'tl> Debug for MessagePart<'tl>
impl<'tl> Debug for MessagePart<'tl>
Source§impl<'tl> TlRead<'tl> for MessagePart<'tl>
impl<'tl> TlRead<'tl> for MessagePart<'tl>
Source§impl<'tl> TlWrite for MessagePart<'tl>
impl<'tl> TlWrite for MessagePart<'tl>
impl<'tl> Copy for MessagePart<'tl>
Auto Trait Implementations§
impl<'tl> Freeze for MessagePart<'tl>
impl<'tl> RefUnwindSafe for MessagePart<'tl>
impl<'tl> Send for MessagePart<'tl>
impl<'tl> Sync for MessagePart<'tl>
impl<'tl> Unpin for MessagePart<'tl>
impl<'tl> UnwindSafe for MessagePart<'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