pub struct RecvRef<'a, T>(_);
Expand description

A reference to a message being received from an asynchronous channel.

A RecvRef represents the exclusive permission to mutate a given element in a channel. A RecvRef<T> implements DerefMut<T> to allow writing to that element. This is analogous to the Ref type, except that it completes a recv_ref or poll_recv_ref operation when it is dropped.

This type is returned by the Receiver::recv_ref and Receiver::poll_recv_ref (or StaticReceiver::recv_ref and StaticReceiver::poll_recv_ref) methods.

Trait Implementations

Formats the value using the given formatter. Read more
The resulting type after dereferencing.
Dereferences the value.
Mutably dereferences the value.
Formats the value using the given formatter. Read more
Writes a string slice into this writer, returning whether the write succeeded. Read more
Writes a char into this writer, returning whether the write succeeded. Read more
Glue for usage of the write! macro with implementors of this trait. Read more

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.

Converts the given value to a String. Read more
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.