Struct pinboard::Pinboard

source ·
pub struct Pinboard<T: Clone + 'static>(_);
Expand description

An instance of a Pinboard, holds a shared, mutable, eventually-consistent reference to a T.

Implementations§

Create a new Pinboard instance holding the given value.

Update the value stored in the Pinboard.

Clear out the Pinboard so its no longer holding any data.

Get a copy of the latest (well, recent) version of the posted data.

Trait Implementations§

Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Executes the destructor for this type. Read more
Converts to this type from the input type.

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.