Trait DynWriteable

Source
pub trait DynWriteable: Write + Send {
    // Required methods
    fn as_dyn_write(&self) -> &(dyn Write + Send + 'static);
    fn as_mut_dyn_write(&mut self) -> &mut (dyn Write + Send + 'static);
    fn close(self: Box<Self>) -> Result<()>;
    fn sync_on_close(&mut self, sync_on_close: SyncOnCloseType) -> Result<()>;
}

Required Methods§

Source

fn as_dyn_write(&self) -> &(dyn Write + Send + 'static)

Source

fn as_mut_dyn_write(&mut self) -> &mut (dyn Write + Send + 'static)

Source

fn close(self: Box<Self>) -> Result<()>

Source

fn sync_on_close(&mut self, sync_on_close: SyncOnCloseType) -> Result<()>

Implementations on Foreign Types§

Source§

impl DynWriteable for ClosableFile

Source§

fn as_dyn_write(&self) -> &(dyn Write + Send + 'static)

Source§

fn as_mut_dyn_write(&mut self) -> &mut (dyn Write + Send + 'static)

Source§

fn close(self: Box<Self>) -> Result<()>

Source§

fn sync_on_close(&mut self, sync_on_close: SyncOnCloseType) -> Result<()>

Implementors§