pub struct FailedPrecondition {}Expand description
A generic FAILED_PRECONDITION error.
Implementations
Trait Implementations
sourceimpl Clone for FailedPrecondition
impl Clone for FailedPrecondition
sourcefn clone(&self) -> FailedPrecondition
fn clone(&self) -> FailedPrecondition
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for FailedPrecondition
impl Debug for FailedPrecondition
sourceimpl<'de> Deserialize<'de> for FailedPrecondition
impl<'de> Deserialize<'de> for FailedPrecondition
sourcefn deserialize<D>(d: D) -> Result<FailedPrecondition, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(d: D) -> Result<FailedPrecondition, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl ErrorType for FailedPrecondition
impl ErrorType for FailedPrecondition
sourcefn instance_id(&self) -> Option<Uuid>
fn instance_id(&self) -> Option<Uuid>
Returns the error’s instance ID, if it stores one. Read more
sourcefn safe_args(&self) -> &'static [&'static str]
fn safe_args(&self) -> &'static [&'static str]
Returns a sorted slice of the names of the error’s safe parameters.
sourcefn with_instance_id(self, instance_id: Uuid) -> WithInstanceId<Self>where
Self: Sized,
fn with_instance_id(self, instance_id: Uuid) -> WithInstanceId<Self>where
Self: Sized,
Wraps the error in another that overrides its instance ID.
sourceimpl From<FailedPrecondition> for Builder
impl From<FailedPrecondition> for Builder
sourcefn from(_v: FailedPrecondition) -> Builder
fn from(_v: FailedPrecondition) -> Builder
Converts to this type from the input type.
sourceimpl Hash for FailedPrecondition
impl Hash for FailedPrecondition
sourceimpl Ord for FailedPrecondition
impl Ord for FailedPrecondition
sourcefn cmp(&self, other: &FailedPrecondition) -> Ordering
fn cmp(&self, other: &FailedPrecondition) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<FailedPrecondition> for FailedPrecondition
impl PartialEq<FailedPrecondition> for FailedPrecondition
sourcefn eq(&self, other: &FailedPrecondition) -> bool
fn eq(&self, other: &FailedPrecondition) -> bool
sourceimpl PartialOrd<FailedPrecondition> for FailedPrecondition
impl PartialOrd<FailedPrecondition> for FailedPrecondition
sourcefn partial_cmp(&self, other: &FailedPrecondition) -> Option<Ordering>
fn partial_cmp(&self, other: &FailedPrecondition) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresourceimpl Serialize for FailedPrecondition
impl Serialize for FailedPrecondition
impl Copy for FailedPrecondition
impl Eq for FailedPrecondition
impl StructuralEq for FailedPrecondition
impl StructuralPartialEq for FailedPrecondition
Auto Trait Implementations
impl RefUnwindSafe for FailedPrecondition
impl Send for FailedPrecondition
impl Sync for FailedPrecondition
impl Unpin for FailedPrecondition
impl UnwindSafe for FailedPrecondition
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more