#[non_exhaustive]pub enum SftpAuxiliaryData {
None,
Boxed(Box<dyn Any + Send + Sync + 'static>),
PinnedFuture(Pin<Box<dyn Future<Output = ()> + Send + Sync + 'static>>),
Arced(Arc<dyn Any + Send + Sync + 'static>),
ArcedOpensshSession(Arc<OpensshSession>),
}
Expand description
Auxiliary data for Sftp
.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None
No auxiliary data.
Boxed(Box<dyn Any + Send + Sync + 'static>)
Store any Box
ed value.
PinnedFuture(Pin<Box<dyn Future<Output = ()> + Send + Sync + 'static>>)
Store any Pin
ed Future
.
Arced(Arc<dyn Any + Send + Sync + 'static>)
Store any Arc
ed value.
ArcedOpensshSession(Arc<OpensshSession>)
Available on crate feature
openssh
only.Store OpensshSession
with in an Arc
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SftpAuxiliaryData
impl !RefUnwindSafe for SftpAuxiliaryData
impl Send for SftpAuxiliaryData
impl Sync for SftpAuxiliaryData
impl Unpin for SftpAuxiliaryData
impl !UnwindSafe for SftpAuxiliaryData
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