[−][src]Struct libunftp::storage::filesystem::Filesystem
Filesystem contains the PathBuf.
Methods
impl Filesystem
[src]
pub fn new<P: Into<PathBuf>>(root: P) -> Self
[src]
Create a new Filesystem backend, with the given root. No operations can take place outside
of the root. For example, when the Filesystem
root is set to /srv/ftp
, and a client
asks for hello.txt
, the server will send it /srv/ftp/hello.txt
.
Trait Implementations
impl<U: Send> StorageBackend<U> for Filesystem
[src]
type File = File
The concrete type of the Files returned by this StorageBackend.
type Metadata = Metadata
The concrete type of the Metadata
used by this StorageBackend.
fn supported_features(&self) -> u32
[src]
fn metadata<P: AsRef<Path>>(
&self,
_user: &Option<U>,
path: P
) -> Box<dyn Future<Item = Self::Metadata, Error = Error> + Send>
[src]
&self,
_user: &Option<U>,
path: P
) -> Box<dyn Future<Item = Self::Metadata, Error = Error> + Send>
fn list<P: AsRef<Path>>(
&self,
_user: &Option<U>,
path: P
) -> Box<dyn Stream<Item = Fileinfo<PathBuf, Self::Metadata>, Error = Error> + Send> where
Self::Metadata: Metadata,
[src]
&self,
_user: &Option<U>,
path: P
) -> Box<dyn Stream<Item = Fileinfo<PathBuf, Self::Metadata>, Error = Error> + Send> where
Self::Metadata: Metadata,
fn get<P: AsRef<Path>>(
&self,
_user: &Option<U>,
path: P,
start_pos: u64
) -> Box<dyn Future<Item = File, Error = Error> + Send>
[src]
&self,
_user: &Option<U>,
path: P,
start_pos: u64
) -> Box<dyn Future<Item = File, Error = Error> + Send>
fn put<P: AsRef<Path>, R: AsyncRead + Send + 'static>(
&self,
_user: &Option<U>,
bytes: R,
path: P,
start_pos: u64
) -> Box<dyn Future<Item = u64, Error = Error> + Send>
[src]
&self,
_user: &Option<U>,
bytes: R,
path: P,
start_pos: u64
) -> Box<dyn Future<Item = u64, Error = Error> + Send>
fn del<P: AsRef<Path>>(
&self,
_user: &Option<U>,
path: P
) -> Box<dyn Future<Item = (), Error = Error> + Send>
[src]
&self,
_user: &Option<U>,
path: P
) -> Box<dyn Future<Item = (), Error = Error> + Send>
fn rmd<P: AsRef<Path>>(
&self,
_user: &Option<U>,
path: P
) -> Box<dyn Future<Item = (), Error = Error> + Send>
[src]
&self,
_user: &Option<U>,
path: P
) -> Box<dyn Future<Item = (), Error = Error> + Send>
fn mkd<P: AsRef<Path>>(
&self,
_user: &Option<U>,
path: P
) -> Box<dyn Future<Item = (), Error = Error> + Send>
[src]
&self,
_user: &Option<U>,
path: P
) -> Box<dyn Future<Item = (), Error = Error> + Send>
fn rename<P: AsRef<Path>>(
&self,
_user: &Option<U>,
from: P,
to: P
) -> Box<dyn Future<Item = (), Error = Error> + Send>
[src]
&self,
_user: &Option<U>,
from: P,
to: P
) -> Box<dyn Future<Item = (), Error = Error> + Send>
fn list_fmt<P: AsRef<Path>>(
&self,
user: &Option<U>,
path: P
) -> Box<dyn Future<Item = Cursor<Vec<u8>>, Error = Error> + Send> where
Self::Metadata: Metadata + 'static,
[src]
&self,
user: &Option<U>,
path: P
) -> Box<dyn Future<Item = Cursor<Vec<u8>>, Error = Error> + Send> where
Self::Metadata: Metadata + 'static,
fn nlst<P: AsRef<Path>>(
&self,
user: &Option<U>,
path: P
) -> Box<dyn Future<Item = Cursor<Vec<u8>>, Error = Error> + Send> where
Self::Metadata: Metadata + 'static,
[src]
&self,
user: &Option<U>,
path: P
) -> Box<dyn Future<Item = Cursor<Vec<u8>>, Error = Error> + Send> where
Self::Metadata: Metadata + 'static,
Auto Trait Implementations
impl RefUnwindSafe for Filesystem
impl Send for Filesystem
impl Sync for Filesystem
impl Unpin for Filesystem
impl UnwindSafe for Filesystem
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Erased for T
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,