pub struct ServerErrorDescriptor {
pub kind: ServerErrorKind,
pub code: &'static str,
pub message: Cow<'static, str>,
pub recovery: UserRecovery,
pub retryable: bool,
pub presentation: ErrorPresentation,
}Fields§
§kind: ServerErrorKind§code: &'static str§message: Cow<'static, str>§recovery: UserRecovery§retryable: bool§presentation: ErrorPresentationImplementations§
Source§impl ServerErrorDescriptor
impl ServerErrorDescriptor
pub fn new(kind: ServerErrorKind, presentation: ErrorPresentation) -> Self
Trait Implementations§
Source§impl Clone for ServerErrorDescriptor
impl Clone for ServerErrorDescriptor
Source§fn clone(&self) -> ServerErrorDescriptor
fn clone(&self) -> ServerErrorDescriptor
Returns a duplicate 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 ServerErrorDescriptor
impl Debug for ServerErrorDescriptor
Source§impl PartialEq for ServerErrorDescriptor
impl PartialEq for ServerErrorDescriptor
Source§impl Serialize for ServerErrorDescriptor
impl Serialize for ServerErrorDescriptor
impl Eq for ServerErrorDescriptor
impl StructuralPartialEq for ServerErrorDescriptor
Auto Trait Implementations§
impl Freeze for ServerErrorDescriptor
impl RefUnwindSafe for ServerErrorDescriptor
impl Send for ServerErrorDescriptor
impl Sync for ServerErrorDescriptor
impl Unpin for ServerErrorDescriptor
impl UnsafeUnpin for ServerErrorDescriptor
impl UnwindSafe for ServerErrorDescriptor
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