Struct single_value_channel::Updater
[−]
[src]
pub struct Updater<T> { /* fields omitted */ }
The updating-half of the single value channel.
Methods
impl<T> Updater<T>
[src]
fn update(&self, value: T) -> Result<(), NoReceiverError<T>>
Updates the latest value in this channel, to be accessed the next time
Receiver::latest
or
Receiver::latest_mut
is called.
This call will fail with NoReceiverError
if the receiver
has been dropped.
fn has_no_receiver(&self) -> bool
Returns true if the receiver has been dropped. Thus indicating any following call to
Updater::update
would fail.
Trait Implementations
impl<T: Debug> Debug for Updater<T>
[src]
impl<T: Clone> Clone for Updater<T>
[src]
fn clone(&self) -> Updater<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more