Struct ruc::ssh::RemoteHostOwned
source · pub struct RemoteHostOwned {
pub addr: String,
pub user: String,
pub port: u16,
pub local_seckeys: Vec<PathBuf>,
}
Expand description
Config an owned instance.
Fields§
§addr: String
The address of the remote host, eg, “8.8.8.8”.
user: String
The user name of the remote host, eg, “bob”.
port: u16
The sshd listening port of the remote host.
local_seckeys: Vec<PathBuf>
Path list of the ssh secret keys(rsa/ed25519 key).
Implementations§
source§impl RemoteHostOwned
impl RemoteHostOwned
sourcepub fn new_default(addr: String, remote_user: String) -> Result<Self>
pub fn new_default(addr: String, remote_user: String) -> Result<Self>
Create a new instance with default port and key path.
Trait Implementations§
source§impl Debug for RemoteHostOwned
impl Debug for RemoteHostOwned
source§impl<'a> From<&'a RemoteHostOwned> for RemoteHost<'a>
impl<'a> From<&'a RemoteHostOwned> for RemoteHost<'a>
source§fn from(o: &'a RemoteHostOwned) -> RemoteHost<'_>
fn from(o: &'a RemoteHostOwned) -> RemoteHost<'_>
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RemoteHostOwned
impl RefUnwindSafe for RemoteHostOwned
impl Send for RemoteHostOwned
impl Sync for RemoteHostOwned
impl Unpin for RemoteHostOwned
impl UnwindSafe for RemoteHostOwned
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