pub trait DavFile:
Debug
+ Send
+ Sync {
// Required methods
fn metadata<'a>(&'a mut self) -> FsFuture<'_, Box<dyn DavMetaData>>;
fn write_buf<'a>(&'a mut self, buf: Box<dyn Buf + Send>) -> FsFuture<'_, ()>;
fn write_bytes<'a>(&'a mut self, buf: Bytes) -> FsFuture<'_, ()>;
fn read_bytes<'a>(&'a mut self, count: usize) -> FsFuture<'_, Bytes>;
fn seek<'a>(&'a mut self, pos: SeekFrom) -> FsFuture<'_, u64>;
fn flush<'a>(&'a mut self) -> FsFuture<'_, ()>;
}
Expand description
A DavFile
is the equivalent of std::fs::File
, should be
readable/writeable/seekable, and be able to return its metadata.