pub struct SessionInfoFile { /* private fields */ }
Expand description

Provides operations related to working with a session that is disk-based

Implementations

Creates a new inmemory pointer to a session and its file

Returns a reference to the path to the session file

Returns a reference to the session

Saves a session by overwriting its current

Saves a session to to a file at the specified path

If all is true, will create all directories leading up to file’s location

Loads a session from a file at the specified path

Methods from Deref<Target = SessionInfo>

Returns the ip address associated with the session based on the host

Returns socket address associated with the session

Converts the session’s key to a hex string

Converts to unprotected string that exposes the key in the form of DISTANT CONNECT <host> <port> <key>

Trait Implementations

Converts this type into a shared reference of the (usually inferred) input type.

Converts this type into a shared reference of the (usually inferred) input type.

The resulting type after dereferencing.

Dereferences the value.

Converts to this type from the input type.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.