pub struct ConnectionDetails {
pub host: String,
pub port: Option<u16>,
pub resolved_ip: Option<IpAddr>,
pub username: Option<String>,
pub key_path: Option<String>,
}Expand description
Network connection details for error display.
Fields§
§host: StringHostname or address attempted
port: Option<u16>Port number (default 22 for SSH)
resolved_ip: Option<IpAddr>Resolved IP address if available
username: Option<String>SSH username if applicable
key_path: Option<String>SSH key path if applicable
Trait Implementations§
Source§impl Clone for ConnectionDetails
impl Clone for ConnectionDetails
Source§fn clone(&self) -> ConnectionDetails
fn clone(&self) -> ConnectionDetails
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConnectionDetails
impl Debug for ConnectionDetails
Source§impl<'de> Deserialize<'de> for ConnectionDetails
impl<'de> Deserialize<'de> for ConnectionDetails
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ConnectionDetails
impl RefUnwindSafe for ConnectionDetails
impl Send for ConnectionDetails
impl Sync for ConnectionDetails
impl Unpin for ConnectionDetails
impl UnsafeUnpin for ConnectionDetails
impl UnwindSafe for ConnectionDetails
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