pub struct TransferIdFixedMap<T: Transport, const C: usize> { /* private fields */ }
Expand description

A fixed-capacity map from destination node IDs to transfer IDs of the next transfer

This map has a limited capacity and will return an error if asked to keep track of transfer IDs for too many nodes.

C must be a power of two. Other values may cause incorrect behavior.

Trait Implementations

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

Returns the next transfer ID for the provided node, and increments the stored ID

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.