pub struct ServerErrorCode {
pub code: String,
pub msg: String,
pub meta: HashMap<String, String>,
}Fields§
§code: String§msg: String§meta: HashMap<String, String>Extra key/value context the server attached (e.g. SIP status). Absent on most errors.
Implementations§
Source§impl ServerErrorCode
impl ServerErrorCode
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 ServerErrorCode
impl Debug for ServerErrorCode
Source§impl<'de> Deserialize<'de> for ServerErrorCode
impl<'de> Deserialize<'de> for ServerErrorCode
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 ServerErrorCode
impl RefUnwindSafe for ServerErrorCode
impl Send for ServerErrorCode
impl Sync for ServerErrorCode
impl Unpin for ServerErrorCode
impl UnsafeUnpin for ServerErrorCode
impl UnwindSafe for ServerErrorCode
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.