pub enum Refused {
Subscriptions {
limit: usize,
},
Users {
limit: usize,
},
Posts {
limit: usize,
},
Closed,
Bad(BadSubscription),
}Expand description
Why nothing was sent.
Variants§
Subscriptions
The session already holds as many subscriptions as its limits allow.
Fields
§
limit: usizeThe session’s limit, Limits::subscriptions.
Users
The subscription would name one user more than the session’s limits allow.
Fields
§
limit: usizeThe session’s limit, Limits::users.
Posts
As many posts as the session’s limits allow are waiting for an answer.
Fields
§
limit: usizeThe session’s limit, Limits::posts.
Closed
A post is never held to send later: an action sent late may land after the moment it was meant for, and one sent again may land twice.
Bad(BadSubscription)
The subscription is not one the venue would take.
Trait Implementations§
impl Eq for Refused
Source§impl Error for Refused
impl Error for Refused
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 From<BadSubscription> for Refused
impl From<BadSubscription> for Refused
Source§fn from(source: BadSubscription) -> Self
fn from(source: BadSubscription) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for Refused
Auto Trait Implementations§
impl Forget for Refused
impl Freeze for Refused
impl Move for Refused
impl RefUnwindSafe for Refused
impl Send for Refused
impl Sync for Refused
impl Unpin for Refused
impl UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.