pub struct Error {
pub kind: ErrorKind,
pub error: Box<dyn Error + Send + Sync>,
}
Fields§
§kind: ErrorKind
§error: Box<dyn Error + Send + Sync>
Implementations§
Source§impl Error
impl Error
pub fn new<E>(kind: ErrorKind, error: E) -> Error
pub fn aborted<E>(error: E) -> Error
pub fn already_exists<E>(error: E) -> Error
pub fn cancelled<E>(error: E) -> Error
pub fn data_loss<E>(error: E) -> Error
pub fn deadline_exceeded<E>(error: E) -> Error
pub fn do_not_use<E>(error: E) -> Error
pub fn failed_precondition<E>(error: E) -> Error
pub fn internal<E>(error: E) -> Error
pub fn invalid_argument<E>(error: E) -> Error
pub fn not_found<E>(error: E) -> Error
pub fn out_of_range<E>(error: E) -> Error
pub fn permission_denied<E>(error: E) -> Error
pub fn resource_exhausted<E>(error: E) -> Error
pub fn unauthenticated<E>(error: E) -> Error
pub fn unimplemented<E>(error: E) -> Error
pub fn unknown<E>(error: E) -> Error
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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<AcquireError> for Error
impl From<AcquireError> for Error
Source§fn from(err: AcquireError) -> Self
fn from(err: AcquireError) -> Self
Converts to this type from the input type.
Source§impl From<AudioKeyError> for Error
impl From<AudioKeyError> for Error
Source§fn from(err: AudioKeyError) -> Self
fn from(err: AudioKeyError) -> Self
Converts to this type from the input type.
Source§impl From<AuthenticationError> for Error
impl From<AuthenticationError> for Error
Source§fn from(err: AuthenticationError) -> Self
fn from(err: AuthenticationError) -> Self
Converts to this type from the input type.
Source§impl From<CacheError> for Error
impl From<CacheError> for Error
Source§fn from(err: CacheError) -> Self
fn from(err: CacheError) -> Self
Converts to this type from the input type.
Source§impl From<CdnUrlError> for Error
impl From<CdnUrlError> for Error
Source§fn from(err: CdnUrlError) -> Self
fn from(err: CdnUrlError) -> Self
Converts to this type from the input type.
Source§impl From<ChannelError> for Error
impl From<ChannelError> for Error
Source§fn from(err: ChannelError) -> Self
fn from(err: ChannelError) -> Self
Converts to this type from the input type.
Source§impl From<ComponentRange> for Error
impl From<ComponentRange> for Error
Source§fn from(err: ComponentRange) -> Self
fn from(err: ComponentRange) -> Self
Converts to this type from the input type.
Source§impl From<DecodeError> for Error
impl From<DecodeError> for Error
Source§fn from(err: DecodeError) -> Self
fn from(err: DecodeError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for Error
impl From<Error> for Error
Source§fn from(err: ProtobufError) -> Self
fn from(err: ProtobufError) -> Self
Converts to this type from the input type.
Source§impl From<FromUtf8Error> for Error
impl From<FromUtf8Error> for Error
Source§fn from(err: FromUtf8Error) -> Self
fn from(err: FromUtf8Error) -> Self
Converts to this type from the input type.
Source§impl From<HttpClientError> for Error
impl From<HttpClientError> for Error
Source§fn from(err: HttpClientError) -> Self
fn from(err: HttpClientError) -> Self
Converts to this type from the input type.
Source§impl From<InvalidHeaderValue> for Error
impl From<InvalidHeaderValue> for Error
Source§fn from(err: InvalidHeaderValue) -> Self
fn from(err: InvalidHeaderValue) -> Self
Converts to this type from the input type.
Source§impl From<InvalidUri> for Error
impl From<InvalidUri> for Error
Source§fn from(err: InvalidUri) -> Self
fn from(err: InvalidUri) -> Self
Converts to this type from the input type.
Source§impl From<MercuryError> for Error
impl From<MercuryError> for Error
Source§fn from(err: MercuryError) -> Self
fn from(err: MercuryError) -> Self
Converts to this type from the input type.
Source§impl From<ParseError> for Error
impl From<ParseError> for Error
Source§fn from(err: ParseError) -> Self
fn from(err: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<ParseIntError> for Error
impl From<ParseIntError> for Error
Source§fn from(err: ParseIntError) -> Self
fn from(err: ParseIntError) -> Self
Converts to this type from the input type.
Source§impl From<SessionError> for Error
impl From<SessionError> for Error
Source§fn from(err: SessionError) -> Self
fn from(err: SessionError) -> Self
Converts to this type from the input type.
Source§impl From<SpClientError> for Error
impl From<SpClientError> for Error
Source§fn from(err: SpClientError) -> Self
fn from(err: SpClientError) -> Self
Converts to this type from the input type.
Source§impl From<SpotifyIdError> for Error
impl From<SpotifyIdError> for Error
Source§fn from(err: SpotifyIdError) -> Self
fn from(err: SpotifyIdError) -> Self
Converts to this type from the input type.
Source§impl From<ToStrError> for Error
impl From<ToStrError> for Error
Source§fn from(err: ToStrError) -> Self
fn from(err: ToStrError) -> Self
Converts to this type from the input type.
Source§impl From<TokenError> for Error
impl From<TokenError> for Error
Source§fn from(err: TokenError) -> Self
fn from(err: TokenError) -> Self
Converts to this type from the input type.
Source§impl From<TryAcquireError> for Error
impl From<TryAcquireError> for Error
Source§fn from(err: TryAcquireError) -> Self
fn from(err: TryAcquireError) -> Self
Converts to this type from the input type.
Source§impl From<TryFromIntError> for Error
impl From<TryFromIntError> for Error
Source§fn from(err: TryFromIntError) -> Self
fn from(err: TryFromIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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