pub enum SubscribeIdError {
ExceedsMax(u64, u64),
Decreased(u64, u64),
Blocked,
}Expand description
Errors from subscribe ID allocation or validation.
Variants§
ExceedsMax(u64, u64)
The subscribe ID exceeds the current MAX_SUBSCRIBE_ID.
Decreased(u64, u64)
MAX_SUBSCRIBE_ID must only increase; it decreased.
Blocked
No subscribe IDs are available (max is 0 or exhausted).
Trait Implementations§
Source§impl Debug for SubscribeIdError
impl Debug for SubscribeIdError
Source§impl Display for SubscribeIdError
impl Display for SubscribeIdError
Source§impl Error for SubscribeIdError
impl Error for SubscribeIdError
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 From<SubscribeIdError> for EndpointError
impl From<SubscribeIdError> for EndpointError
Source§fn from(source: SubscribeIdError) -> Self
fn from(source: SubscribeIdError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SubscribeIdError
impl PartialEq for SubscribeIdError
impl Eq for SubscribeIdError
impl StructuralPartialEq for SubscribeIdError
Auto Trait Implementations§
impl Freeze for SubscribeIdError
impl RefUnwindSafe for SubscribeIdError
impl Send for SubscribeIdError
impl Sync for SubscribeIdError
impl Unpin for SubscribeIdError
impl UnsafeUnpin for SubscribeIdError
impl UnwindSafe for SubscribeIdError
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