pub enum Refused {
Congested {
needed: usize,
free: usize,
},
TooLarge {
needed: usize,
capacity: usize,
},
Closed,
}Expand description
Why a transition could not be admitted.
Variants§
Congested
Not enough free slots right now. Nothing was queued, the committed state stays where it is, and the next attempt is planned against a fresher desired state. Ordinary backpressure, not a fault.
TooLarge
Larger than the queue can ever hold. Retrying would never succeed, so this is a livelock rather than backpressure and the connection is torn down: reconnecting rebuilds the view from scratch.
Closed
The connection’s writer has ended.
Trait Implementations§
Source§impl Error for Refused
impl Error for Refused
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()
impl Copy for Refused
impl Eq for Refused
impl StructuralPartialEq for Refused
Auto Trait Implementations§
impl Freeze for Refused
impl RefUnwindSafe for Refused
impl Send for Refused
impl Sync for Refused
impl Unpin for Refused
impl UnwindSafe for Refused
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