pub enum AliErrorKind {
ServiceError {
message: String,
},
NetworkError {
message: String,
},
EncoderError {
format: String,
message: String,
},
DecoderError {
format: String,
message: String,
},
CustomError {
message: String,
},
UnknownError,
}
Expand description
枚举定义阿里云服务中可能发生的错误类型
Variants§
ServiceError
服务器错误
NetworkError
网络错误
EncoderError
编码错误
DecoderError
解码错误
CustomError
自定义错误
UnknownError
未知错误
Trait Implementations§
Source§impl Clone for AliErrorKind
impl Clone for AliErrorKind
Source§fn clone(&self) -> AliErrorKind
fn clone(&self) -> AliErrorKind
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AliErrorKind
impl Debug for AliErrorKind
Source§impl Display for AliErrorKind
impl Display for AliErrorKind
Source§impl From<AliErrorKind> for AliError
impl From<AliErrorKind> for AliError
Source§fn from(error: AliErrorKind) -> Self
fn from(error: AliErrorKind) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AliErrorKind
impl RefUnwindSafe for AliErrorKind
impl Send for AliErrorKind
impl Sync for AliErrorKind
impl Unpin for AliErrorKind
impl UnwindSafe for AliErrorKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more