Skip to main content

FileSourceExt

Trait FileSourceExt 

Source
pub trait FileSourceExt {
    // Required method
    fn file_source(&self) -> Option<CryptoFile>;
}
Expand description

Convenience accessor for the CryptoFile stored inside a received file item.

Implemented for CIFile (direct access) and for simploxide_api_types::events::RcvFileComplete (drills through chat_item.chat_item.file).

Required Methods§

Source

fn file_source(&self) -> Option<CryptoFile>

Returns the file source, or None if no file source is present.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§