Trait lib_gistit::file::FileReady [−][src]
pub trait FileReady {
fn inner<'async_trait>(
self: Box<Self>
) -> Pin<Box<dyn Future<Output = Option<Box<File>>> + Send + 'async_trait>>
where
Self: 'async_trait;
fn data(&self) -> &[u8]ⓘ;
fn to_encoded_data(&self) -> EncodedFileData;
}
Expand description
Represents the opened file handler
Required methods
Returns a reference to the original File
handler if any.
Returns a reference to the underlying data. Can be encrypted depending on the source
fn to_encoded_data(&self) -> EncodedFileData
fn to_encoded_data(&self) -> EncodedFileData
Converts Self
into the sendable form of the data