pub struct Status(/* private fields */);
Implementations§
Source§impl Status
impl Status
pub fn new(code: StatusCode, message: &str) -> Self
pub fn ok() -> Self
pub fn is_aborted(&self) -> bool
pub fn is_already_exists(&self) -> bool
pub fn is_cancelled(&self) -> bool
pub fn is_data_loss(&self) -> bool
pub fn is_deadline_exceeded(&self) -> bool
pub fn is_failed_precondition(&self) -> bool
pub fn is_internal(&self) -> bool
pub fn is_invalid_argument(&self) -> bool
pub fn is_not_found(&self) -> bool
pub fn is_out_of_range(&self) -> bool
pub fn is_permission_denied(&self) -> bool
pub fn is_resource_exhausted(&self) -> bool
pub fn is_unauthenticated(&self) -> bool
pub fn is_unimplemented(&self) -> bool
pub fn is_unknown(&self) -> bool
pub fn aborted(msg: &str) -> Self
pub fn already_exists(msg: &str) -> Self
pub fn cancelled(msg: &str) -> Self
pub fn data_loss(msg: &str) -> Self
pub fn deadline_exceeded(msg: &str) -> Self
pub fn failed_precondition(msg: &str) -> Self
pub fn internal(msg: &str) -> Self
pub fn invalid_argument(msg: &str) -> Self
pub fn not_found(msg: &str) -> Self
pub fn out_of_range(msg: &str) -> Self
pub fn permission_denied(msg: &str) -> Self
pub fn resource_exhausted(msg: &str) -> Self
pub fn unauthenticated(msg: &str) -> Self
pub fn unimplemented(msg: &str) -> Self
pub fn unknown(msg: &str) -> Self
Trait Implementations§
Source§impl Error for Status
impl Error for Status
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for Status
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnwindSafe for Status
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