Enum asuran::repository::backend::sftp::SFTPConnection [−][src]
pub enum SFTPConnection {
Connected {
settings: SFTPSettings,
session: Session,
sftp: Rc<Sftp>,
},
NotConnected {
settings: SFTPSettings,
},
}
Variants
Fields of Connected
Fields of NotConnected
settings: SFTPSettings
Implementations
Connects to the backend if needed and converts to SFTPConnection::Connected
, otherwise
returns self
unaltered
Provides a reference to the internal settings of this connection
Provides a reference to the ssh session, or None if this connection is not in a connected state
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for SFTPConnection
impl !Send for SFTPConnection
impl !Sync for SFTPConnection
impl Unpin for SFTPConnection
impl !UnwindSafe for SFTPConnection
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more