pub enum AsyncSink<T> {
Ready,
NotReady(T),
}
The result of an asynchronous attempt to send a value to a sink.
The start_send
attempt succeeded, so the sending process has
started; you must use Sink::poll_complete
to drive the send
to completion.
The start_send
attempt failed due to the sink being full. The value
being sent is returned, and the current Task
will be automatically
notified again once the sink has room.
Change the NotReady value of this AsyncSink
with the closure provided
Returns whether this is AsyncSink::Ready
Returns whether this is AsyncSink::NotReady
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
This method tests for self
and other
values to be equal, and is used by ==
. Read more
This method tests for !=
.
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)