Skip to main content

DavFile

Trait DavFile 

Source
pub trait DavFile: Send {
    // Required methods
    fn metadata<'a>(&'a mut self) -> FsFuture<'a, Box<dyn DavMetaData>>;
    fn read_bytes(&mut self, count: usize) -> FsFuture<'_, Bytes>;
    fn write_bytes(&mut self, buf: Bytes) -> FsFuture<'_, ()>;
    fn write_buf(&mut self, buf: Box<dyn Buf + Send>) -> FsFuture<'_, ()>;
    fn seek(&mut self, pos: SeekFrom) -> FsFuture<'_, u64>;
    fn flush(&mut self) -> FsFuture<'_, ()>;
}
Expand description

Open file handle supplied by a product adapter.

Required Methods§

Source

fn metadata<'a>(&'a mut self) -> FsFuture<'a, Box<dyn DavMetaData>>

Source

fn read_bytes(&mut self, count: usize) -> FsFuture<'_, Bytes>

Source

fn write_bytes(&mut self, buf: Bytes) -> FsFuture<'_, ()>

Source

fn write_buf(&mut self, buf: Box<dyn Buf + Send>) -> FsFuture<'_, ()>

Source

fn seek(&mut self, pos: SeekFrom) -> FsFuture<'_, u64>

Source

fn flush(&mut self) -> FsFuture<'_, ()>

Implementors§