pub struct ClientErrorCode(pub u16);Tuple Fields§
§0: u16Implementations§
Source§impl ClientErrorCode
impl ClientErrorCode
pub const Internal: Self
pub const UnknownChannel: Self
pub const PermissionDenied: Self
pub const MethodNotFound: Self
pub const AlreadySubscribed: Self
pub const LimitExceeded: Self
pub const BadRequest: Self
pub const NotAvailable: Self
pub const TokenExpired: Self
pub const Expired: Self
pub const TooManyRequests: Self
pub const UnrecoverablePosition: Self
pub fn is_temporary(self) -> bool
pub fn to_str(&self) -> Cow<'static, str>
Trait Implementations§
Source§impl Clone for ClientErrorCode
impl Clone for ClientErrorCode
Source§fn clone(&self) -> ClientErrorCode
fn clone(&self) -> ClientErrorCode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ClientErrorCode
Source§impl Debug for ClientErrorCode
impl Debug for ClientErrorCode
Source§impl Display for ClientErrorCode
impl Display for ClientErrorCode
impl Eq for ClientErrorCode
Source§impl Error for ClientErrorCode
impl Error for ClientErrorCode
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<ClientErrorCode> for ClientError
impl From<ClientErrorCode> for ClientError
Source§fn from(code: ClientErrorCode) -> Self
fn from(code: ClientErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<ClientErrorCode> for u16
impl From<ClientErrorCode> for u16
Source§fn from(code: ClientErrorCode) -> Self
fn from(code: ClientErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<ClientErrorCode> for Error
impl From<ClientErrorCode> for Error
Source§fn from(code: ClientErrorCode) -> Self
fn from(code: ClientErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<u16> for ClientErrorCode
impl From<u16> for ClientErrorCode
Source§impl PartialEq for ClientErrorCode
impl PartialEq for ClientErrorCode
impl StructuralPartialEq for ClientErrorCode
Auto Trait Implementations§
impl Freeze for ClientErrorCode
impl RefUnwindSafe for ClientErrorCode
impl Send for ClientErrorCode
impl Sync for ClientErrorCode
impl Unpin for ClientErrorCode
impl UnsafeUnpin for ClientErrorCode
impl UnwindSafe for ClientErrorCode
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