Struct distant_core::SessionInfo[][src]

pub struct SessionInfo {
    pub host: String,
    pub port: u16,
    pub auth_key: SecretKey,
}

Fields

host: Stringport: u16auth_key: SecretKey

Implementations

Loads session from environment variables

Loads session from the next line available in this program’s stdin

Consumes the session and returns the auth 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 auth key in the form of DISTANT DATA <host> <port> <auth key>

Trait Implementations

Performs the conversion.

Formats the value using the given formatter. Read more

Performs the conversion.

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.