pub enum AsSinkError {
Rejected,
}Expand description
The one real error AsSink’s futures::Sink::start_send can report: DrainSink::accept
only signals backpressure via ControlFlow::Break (no richer cause), and
poll_ready is expected to prevent this in the well-behaved case.
Variants§
Rejected
The sink had no room for the item.
Trait Implementations§
Source§impl Clone for AsSinkError
impl Clone for AsSinkError
impl Copy for AsSinkError
Source§impl Debug for AsSinkError
impl Debug for AsSinkError
Source§impl Display for AsSinkError
impl Display for AsSinkError
impl Eq for AsSinkError
Source§impl Error for AsSinkError
impl Error for AsSinkError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for AsSinkError
impl PartialEq for AsSinkError
impl StructuralPartialEq for AsSinkError
Auto Trait Implementations§
impl Freeze for AsSinkError
impl RefUnwindSafe for AsSinkError
impl Send for AsSinkError
impl Sync for AsSinkError
impl Unpin for AsSinkError
impl UnsafeUnpin for AsSinkError
impl UnwindSafe for AsSinkError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.