Struct conserve::transport::local::LocalTransport
source · pub struct LocalTransport { /* private fields */ }
Implementations§
Trait Implementations§
source§impl AsRef<dyn Transport> for LocalTransport
impl AsRef<dyn Transport> for LocalTransport
source§impl Clone for LocalTransport
impl Clone for LocalTransport
source§fn clone(&self) -> LocalTransport
fn clone(&self) -> LocalTransport
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for LocalTransport
impl Debug for LocalTransport
source§impl Transport for LocalTransport
impl Transport for LocalTransport
source§fn list_dir(&self, relpath: &str) -> Result<ListDir, Error>
fn list_dir(&self, relpath: &str) -> Result<ListDir, Error>
List a directory, separating out file and subdirectory names. Read more
source§fn read_file(&self, relpath: &str) -> Result<Bytes, Error>
fn read_file(&self, relpath: &str) -> Result<Bytes, Error>
Get one complete file into a caller-provided buffer. Read more
source§fn create_dir(&self, relpath: &str) -> Result<(), Error>
fn create_dir(&self, relpath: &str) -> Result<(), Error>
Create a directory, if it does not exist. Read more
source§fn write_file(&self, relpath: &str, content: &[u8]) -> Result<(), Error>
fn write_file(&self, relpath: &str, content: &[u8]) -> Result<(), Error>
Write a complete file. Read more
source§fn remove_dir_all(&self, relpath: &str) -> Result<(), Error>
fn remove_dir_all(&self, relpath: &str) -> Result<(), Error>
Delete a directory and all its contents.
Auto Trait Implementations§
impl RefUnwindSafe for LocalTransport
impl Send for LocalTransport
impl Sync for LocalTransport
impl Unpin for LocalTransport
impl UnwindSafe for LocalTransport
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more