pub enum PlanCostError {
ZeroObservedPrice,
SpendingCeilingExceeded,
}Expand description
Invalid cost confirmation.
Variants§
ZeroObservedPrice
An observed price must be nonzero for cost authority.
SpendingCeilingExceeded
The observed price exceeds the caller’s spending ceiling.
Trait Implementations§
Source§impl Clone for PlanCostError
impl Clone for PlanCostError
Source§fn clone(&self) -> PlanCostError
fn clone(&self) -> PlanCostError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PlanCostError
Source§impl Debug for PlanCostError
impl Debug for PlanCostError
Source§impl Display for PlanCostError
impl Display for PlanCostError
impl Eq for PlanCostError
Source§impl Error for PlanCostError
impl Error for PlanCostError
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()
Source§impl PartialEq for PlanCostError
impl PartialEq for PlanCostError
impl StructuralPartialEq for PlanCostError
Auto Trait Implementations§
impl Freeze for PlanCostError
impl RefUnwindSafe for PlanCostError
impl Send for PlanCostError
impl Sync for PlanCostError
impl Unpin for PlanCostError
impl UnsafeUnpin for PlanCostError
impl UnwindSafe for PlanCostError
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