#[repr(i32)]pub enum ResCode {
Success = 1_000,
Fail = 1_001,
ValidateFail = 1_002,
CoreError = 1_003,
CommError = 1_004,
Unauthorized = 1_005,
Forbidden = 1_006,
NotFound = 1_007,
}Expand description
响应码
Variants§
Success = 1_000
成功
Fail = 1_001
失败
ValidateFail = 1_002
验证失败
CoreError = 1_003
核心异常
CommError = 1_004
通用异常
未授权
Forbidden = 1_006
禁止访问
NotFound = 1_007
未找到
Implementations§
Trait Implementations§
impl Copy for ResCode
impl Eq for ResCode
impl StructuralPartialEq for ResCode
Auto Trait Implementations§
impl Freeze for ResCode
impl RefUnwindSafe for ResCode
impl Send for ResCode
impl Sync for ResCode
impl Unpin for ResCode
impl UnwindSafe for ResCode
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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