Struct distant_core::SessionInfoFile[][src]

pub struct SessionInfoFile { /* fields omitted */ }
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 to unprotected string that exposes the auth key in the form of DISTANT DATA <host> <port> <auth key>

Trait Implementations

Performs the conversion.

Performs the conversion.

The resulting type after dereferencing.

Dereferences the value.

Performs the conversion.

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.