async_unsync::oneshotStruct SenderRef
Source pub struct SenderRef<'a, T> { }
Expand description
A borrowing handle for sending an element through a split
OneshotChannel
.
Returns true
if the channel has been closed.
Polls the channel, resolving if the channel has been closed.
Resolves when the channel is closed.
Sends a value through the channel.
§Errors
Fails, if the channel is closed.
Formats the value using the given formatter.
Read more
Executes the destructor for this type.
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.