[−][src]Struct unmemftp::MemStorage
Implementations
impl MemStorage
[src]
Trait Implementations
impl Clone for MemStorage
[src]
fn clone(&self) -> MemStorage
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for MemStorage
[src]
impl<U: Send + Sync + Debug> StorageBackend<U> for MemStorage
[src]
type File = Cursor<Vec<u8>>
The concrete type of the FTP File returned by this storage backend.
type Metadata = MemMetadata
The concrete type of the metadata used by this storage backend.
fn metadata<'life0, 'life1, 'async_trait, P: AsRef<Path> + Send>(
&'life0 self,
_user: &'life1 Option<U>,
path: P
) -> Pin<Box<dyn Future<Output = FtpResult<Self::Metadata>> + Send + 'async_trait>> where
P: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
_user: &'life1 Option<U>,
path: P
) -> Pin<Box<dyn Future<Output = FtpResult<Self::Metadata>> + Send + 'async_trait>> where
P: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn list<'life0, 'life1, 'async_trait, P>(
&'life0 self,
_user: &'life1 Option<U>,
path: P
) -> Pin<Box<dyn Future<Output = FtpResult<Vec<Fileinfo<PathBuf, Self::Metadata>>>> + Send + 'async_trait>> where
P: AsRef<Path> + Send,
Self::Metadata: Metadata,
P: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
_user: &'life1 Option<U>,
path: P
) -> Pin<Box<dyn Future<Output = FtpResult<Vec<Fileinfo<PathBuf, Self::Metadata>>>> + Send + 'async_trait>> where
P: AsRef<Path> + Send,
Self::Metadata: Metadata,
P: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn get<'life0, 'life1, 'async_trait, P: AsRef<Path> + Send>(
&'life0 self,
_user: &'life1 Option<U>,
path: P,
start_pos: u64
) -> Pin<Box<dyn Future<Output = FtpResult<Self::File>> + Send + 'async_trait>> where
P: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
_user: &'life1 Option<U>,
path: P,
start_pos: u64
) -> Pin<Box<dyn Future<Output = FtpResult<Self::File>> + Send + 'async_trait>> where
P: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn cwd<'life0, 'life1, 'async_trait, P: AsRef<Path> + Send>(
&'life0 self,
_user: &'life1 Option<U>,
path: P
) -> Pin<Box<dyn Future<Output = FtpResult<()>> + Send + 'async_trait>> where
P: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
_user: &'life1 Option<U>,
path: P
) -> Pin<Box<dyn Future<Output = FtpResult<()>> + Send + 'async_trait>> where
P: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn put<'life0, 'life1, 'async_trait, P: AsRef<Path> + Send, R: AsyncRead + Send + Sync + 'static + Unpin>(
&'life0 self,
_user: &'life1 Option<U>,
_bytes: R,
_path: P,
_start_pos: u64
) -> Pin<Box<dyn Future<Output = FtpResult<u64>> + Send + 'async_trait>> where
P: 'async_trait,
R: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
_user: &'life1 Option<U>,
_bytes: R,
_path: P,
_start_pos: u64
) -> Pin<Box<dyn Future<Output = FtpResult<u64>> + Send + 'async_trait>> where
P: 'async_trait,
R: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn del<'life0, 'life1, 'async_trait, P: AsRef<Path> + Send>(
&'life0 self,
_user: &'life1 Option<U>,
_path: P
) -> Pin<Box<dyn Future<Output = FtpResult<()>> + Send + 'async_trait>> where
P: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
_user: &'life1 Option<U>,
_path: P
) -> Pin<Box<dyn Future<Output = FtpResult<()>> + Send + 'async_trait>> where
P: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn rmd<'life0, 'life1, 'async_trait, P: AsRef<Path> + Send>(
&'life0 self,
_user: &'life1 Option<U>,
_path: P
) -> Pin<Box<dyn Future<Output = FtpResult<()>> + Send + 'async_trait>> where
P: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
_user: &'life1 Option<U>,
_path: P
) -> Pin<Box<dyn Future<Output = FtpResult<()>> + Send + 'async_trait>> where
P: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn mkd<'life0, 'life1, 'async_trait, P: AsRef<Path> + Send>(
&'life0 self,
_user: &'life1 Option<U>,
_path: P
) -> Pin<Box<dyn Future<Output = FtpResult<()>> + Send + 'async_trait>> where
P: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
_user: &'life1 Option<U>,
_path: P
) -> Pin<Box<dyn Future<Output = FtpResult<()>> + Send + 'async_trait>> where
P: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn rename<'life0, 'life1, 'async_trait, P: AsRef<Path> + Send>(
&'life0 self,
_user: &'life1 Option<U>,
_from: P,
_to: P
) -> Pin<Box<dyn Future<Output = FtpResult<()>> + Send + 'async_trait>> where
P: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
_user: &'life1 Option<U>,
_from: P,
_to: P
) -> Pin<Box<dyn Future<Output = FtpResult<()>> + Send + 'async_trait>> where
P: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn supported_features(&self) -> u32
[src]
#[must_use]fn list_fmt<'life0, 'life1, 'async_trait, P>(
&'life0 self,
user: &'life1 Option<U>,
path: P
) -> Pin<Box<dyn Future<Output = Result<Cursor<Vec<u8>>, Error>> + 'async_trait + Send>> where
'life0: 'async_trait,
'life1: 'async_trait,
P: AsRef<Path> + Send + Debug + 'async_trait,
Self: 'async_trait,
Self::Metadata: Metadata,
Self::Metadata: 'static,
[src]
&'life0 self,
user: &'life1 Option<U>,
path: P
) -> Pin<Box<dyn Future<Output = Result<Cursor<Vec<u8>>, Error>> + 'async_trait + Send>> where
'life0: 'async_trait,
'life1: 'async_trait,
P: AsRef<Path> + Send + Debug + 'async_trait,
Self: 'async_trait,
Self::Metadata: Metadata,
Self::Metadata: 'static,
#[must_use]fn nlst<'life0, 'life1, 'async_trait, P>(
&'life0 self,
user: &'life1 Option<U>,
path: P
) -> Pin<Box<dyn Future<Output = Result<Cursor<Vec<u8>>, Error>> + 'async_trait + Send>> where
'life0: 'async_trait,
'life1: 'async_trait,
P: AsRef<Path> + Send + Debug + 'async_trait,
Self: 'async_trait,
Self::Metadata: Metadata,
Self::Metadata: 'static,
[src]
&'life0 self,
user: &'life1 Option<U>,
path: P
) -> Pin<Box<dyn Future<Output = Result<Cursor<Vec<u8>>, Error>> + 'async_trait + Send>> where
'life0: 'async_trait,
'life1: 'async_trait,
P: AsRef<Path> + Send + Debug + 'async_trait,
Self: 'async_trait,
Self::Metadata: Metadata,
Self::Metadata: 'static,
Auto Trait Implementations
impl RefUnwindSafe for MemStorage
impl Send for MemStorage
impl Sync for MemStorage
impl Unpin for MemStorage
impl UnwindSafe for MemStorage
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> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,