Downloadable

Trait Downloadable 

Source
pub trait Downloadable: Sync + Send {
    // Required methods
    fn direct_path(&self) -> Option<&str>;
    fn media_key(&self) -> Option<&[u8]>;
    fn file_enc_sha256(&self) -> Option<&[u8]>;
    fn file_sha256(&self) -> Option<&[u8]>;
    fn file_length(&self) -> Option<u64>;
    fn app_info(&self) -> MediaType;
}

Required Methods§

Source

fn direct_path(&self) -> Option<&str>

Source

fn media_key(&self) -> Option<&[u8]>

Source

fn file_enc_sha256(&self) -> Option<&[u8]>

Source

fn file_sha256(&self) -> Option<&[u8]>

Source

fn file_length(&self) -> Option<u64>

Source

fn app_info(&self) -> MediaType

Implementations on Foreign Types§

Source§

impl Downloadable for AudioMessage

Source§

impl Downloadable for DocumentMessage

Source§

impl Downloadable for HistorySyncNotification

Source§

impl Downloadable for ImageMessage

Source§

impl Downloadable for StickerMessage

Source§

impl Downloadable for VideoMessage

Source§

impl Downloadable for ExternalBlobReference

Implementors§