Struct sage_broker::Sessions[][src]

pub struct Sessions { /* fields omitted */ }
Expand description

Holds sessions manipulated from the Command Loop

Implementations

Returns the number of sessions

Returns true is the collection is empty

Searches for the Session at given index and returns it. If take is set, the session will be extracted from the database

Returns the client given its id. If not client exist, returns None

Add the given session into the database

Returns an iterator over sessions

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

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.

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.