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]
Notable traits for &'_ mut [u8]
impl<'_> Write for &'_ mut [u8]impl<'_> Read for &'_ [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

Converts Self into the sendable form of the data

Implementors