pub enum ProtocolType<'a> {
Plan9(Plan9Type),
SFTP(SFTPType, &'a [SFTPExtensions]),
Other(Option<&'a dyn Any>),
}Expand description
The kind of protocol in use.
Variants§
Trait Implementations§
Source§impl<'a> Clone for ProtocolType<'a>
impl<'a> Clone for ProtocolType<'a>
Source§fn clone(&self) -> ProtocolType<'a>
fn clone(&self) -> ProtocolType<'a>
Returns a duplicate 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<'a> Debug for ProtocolType<'a>
impl<'a> Debug for ProtocolType<'a>
impl<'a> Copy for ProtocolType<'a>
Auto Trait Implementations§
impl<'a> Freeze for ProtocolType<'a>
impl<'a> !RefUnwindSafe for ProtocolType<'a>
impl<'a> !Send for ProtocolType<'a>
impl<'a> !Sync for ProtocolType<'a>
impl<'a> Unpin for ProtocolType<'a>
impl<'a> !UnwindSafe for ProtocolType<'a>
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