pub struct TwirpErrorCode {
pub code: String,
pub msg: String,
}
Fields§
§code: String
§msg: String
Implementations§
Source§impl TwirpErrorCode
impl TwirpErrorCode
pub const CANCELED: &'static str = "canceled"
pub const UNKNOWN: &'static str = "unknown"
pub const INVALID_ARGUMENT: &'static str = "invalid_argument"
pub const MALFORMED: &'static str = "malformed"
pub const DEADLINE_EXCEEDED: &'static str = "deadline_exceeded"
pub const NOT_FOUND: &'static str = "not_found"
pub const BAD_ROUTE: &'static str = "bad_route"
pub const ALREADY_EXISTS: &'static str = "already_exists"
pub const PERMISSION_DENIED: &'static str = "permission_denied"
pub const UNAUTHENTICATED: &'static str = "unauthenticated"
pub const RESOURCE_EXHAUSTED: &'static str = "resource_exhausted"
pub const FAILED_PRECONDITION: &'static str = "failed_precondition"
pub const ABORTED: &'static str = "aborted"
pub const OUT_OF_RANGE: &'static str = "out_of_range"
pub const UNIMPLEMENTED: &'static str = "unimplemented"
pub const INTERNAL: &'static str = "internal"
pub const UNAVAILABLE: &'static str = "unavailable"
pub const DATA_LOSS: &'static str = "dataloss"
Trait Implementations§
Source§impl Debug for TwirpErrorCode
impl Debug for TwirpErrorCode
Source§impl<'de> Deserialize<'de> for TwirpErrorCode
impl<'de> Deserialize<'de> for TwirpErrorCode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TwirpErrorCode
impl RefUnwindSafe for TwirpErrorCode
impl Send for TwirpErrorCode
impl Sync for TwirpErrorCode
impl Unpin for TwirpErrorCode
impl UnwindSafe for TwirpErrorCode
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