Struct super_spotify_core::error::Error
source · 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) -> Errorwhere E: Into<Box<dyn Error + Send + Sync>>,
pub fn aborted<E>(error: E) -> Errorwhere E: Into<Box<dyn Error + Send + Sync>>,
pub fn already_exists<E>(error: E) -> Errorwhere E: Into<Box<dyn Error + Send + Sync>>,
pub fn cancelled<E>(error: E) -> Errorwhere E: Into<Box<dyn Error + Send + Sync>>,
pub fn data_loss<E>(error: E) -> Errorwhere E: Into<Box<dyn Error + Send + Sync>>,
pub fn deadline_exceeded<E>(error: E) -> Errorwhere E: Into<Box<dyn Error + Send + Sync>>,
pub fn do_not_use<E>(error: E) -> Errorwhere E: Into<Box<dyn Error + Send + Sync>>,
pub fn failed_precondition<E>(error: E) -> Errorwhere E: Into<Box<dyn Error + Send + Sync>>,
pub fn internal<E>(error: E) -> Errorwhere E: Into<Box<dyn Error + Send + Sync>>,
pub fn invalid_argument<E>(error: E) -> Errorwhere E: Into<Box<dyn Error + Send + Sync>>,
pub fn not_found<E>(error: E) -> Errorwhere E: Into<Box<dyn Error + Send + Sync>>,
pub fn out_of_range<E>(error: E) -> Errorwhere E: Into<Box<dyn Error + Send + Sync>>,
pub fn permission_denied<E>(error: E) -> Errorwhere E: Into<Box<dyn Error + Send + Sync>>,
pub fn resource_exhausted<E>(error: E) -> Errorwhere E: Into<Box<dyn Error + Send + Sync>>,
pub fn unauthenticated<E>(error: E) -> Errorwhere E: Into<Box<dyn Error + Send + Sync>>,
pub fn unimplemented<E>(error: E) -> Errorwhere E: Into<Box<dyn Error + Send + Sync>>,
pub fn unknown<E>(error: E) -> Errorwhere E: Into<Box<dyn Error + Send + Sync>>,
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)>
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 !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