pub struct SshTarget {
pub remote: String,
pub port: Option<u16>,
}Expand description
An ssh endpoint, in the spelling sshfs and rsync both take on the
command line — and the one /proc/mounts reports back, which is what
lets the already-mounted check be a string compare.
Fields§
§remote: String[user@]host:/abs/path.
port: Option<u16>Non-default ssh port, when the spec named one.
Trait Implementations§
impl Eq for SshTarget
impl StructuralPartialEq for SshTarget
Auto Trait Implementations§
impl Freeze for SshTarget
impl RefUnwindSafe for SshTarget
impl Send for SshTarget
impl Sync for SshTarget
impl Unpin for SshTarget
impl UnsafeUnpin for SshTarget
impl UnwindSafe for SshTarget
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.