pub struct SessionDynamicMap<I, N, T, D> where
    I: Instant
{ /* private fields */ }
Expand description

A session map that uses dynamic memory allocation

Caution: This implementation cannot detect when memory allocation fails, so it may cause the program to abort. Only use it when memory is plentiful.

This implementation uses variable amounts of memory and takes O(log(number of sessions)) time.

Trait Implementations

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

Returns a reference to the session for the provided node, if one exists

Returns a mutable reference to the session for the provided node, if one exists

Returns a mutable reference to the session for the provided node Read more

Inserts a session Read more

Removes all sessions that have expired

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.

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.