Struct pinboard::Pinboard
[−]
[src]
pub struct Pinboard<T: Clone>(_);
An instance of a Pinboard
, holds a shared, mutable, eventually-consistent reference to a T
.
Methods
impl<T: Clone> Pinboard<T>
[src]
fn new(t: T) -> Pinboard<T>
[src]
Create a new Pinboard
instance holding the given value.
fn set(&self, t: T)
[src]
Update the value stored in the Pinboard
.
fn clear(&self)
[src]
Clear out the Pinboard
so its no longer holding any data.
fn read(&self) -> Option<T>
[src]
Get a copy of the latest (well, recent) version of the posted data.
Trait Implementations
impl<T: Clone> Default for Pinboard<T>
[src]
impl<T: Clone> Drop for Pinboard<T>
[src]
impl<T: Clone> From<Option<T>> for Pinboard<T>
[src]
impl<T: Clone> Debug for Pinboard<T> where
T: Debug,
[src]
T: Debug,