Struct distant_core::SessionInfo [−][src]
pub struct SessionInfo {
pub host: String,
pub port: u16,
pub key: SecretKey32,
}Fields
host: Stringport: u16key: SecretKey32Implementations
Loads session from environment variables
Loads session from the next line available in this program’s stdin
Consumes the session and returns the key
Returns the ip address associated with the session based on the host
Returns socket address associated with the session
Converts to unprotected string that exposes the key in the form of
DISTANT CONNECT <host> <port> <key>
Trait Implementations
Performs the conversion.
Performs the conversion.
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.