[][src]Trait webdav_handler::fs::DavFile

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

A DavFile is the equivalent of std::fs::File, should be readable/writeable/seekable, and be able to return its metadata.

Required methods

pub fn metadata<'a>(&'a mut self) -> FsFuture<'_, Box<dyn DavMetaData>>[src]

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

pub fn write_bytes<'a>(&'a mut self, buf: Bytes) -> FsFuture<'_, ()>[src]

pub fn read_bytes<'a>(&'a mut self, count: usize) -> FsFuture<'_, Bytes>[src]

pub fn seek<'a>(&'a mut self, pos: SeekFrom) -> FsFuture<'_, u64>[src]

pub fn flush<'a>(&'a mut self) -> FsFuture<'_, ()>[src]

Loading content...

Implementors

Loading content...