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

A session, associated with a port ID and source node ID

Multiple transfers may be received during the lifetime of a session

Implementations

Creates a new session

Returns true if this session has expired and should be removed

Returns the time when this session was last active

Sets the time when this session was last active

Returns the timeout duration for this session

Returns the ID of the last received transfer, if any

Sets the ID of the most recently received transfer

Returns a reference to the transport-specific data

Returns a mutable reference to the transport-specific data

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.