pub enum BootstrapReservationError<C, P> {
Ledger(LedgerCommitError<C>),
Policy(P),
Reservation(AllocationReservationError),
}Expand description
BootstrapReservationError
Failure to policy-check, stage, or commit an allocation reservation.
Variants§
Ledger(LedgerCommitError<C>)
Ledger recovery or protected commit failed.
Policy(P)
Policy adapter rejected a reservation declaration.
Reservation(AllocationReservationError)
Reservation conflicted with historical allocation facts.
Trait Implementations§
Source§impl<C: Clone, P: Clone> Clone for BootstrapReservationError<C, P>
impl<C: Clone, P: Clone> Clone for BootstrapReservationError<C, P>
Source§fn clone(&self) -> BootstrapReservationError<C, P>
fn clone(&self) -> BootstrapReservationError<C, P>
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 moreSource§impl<C, P> Display for BootstrapReservationError<C, P>where
LedgerCommitError<C>: Display,
impl<C, P> Display for BootstrapReservationError<C, P>where
LedgerCommitError<C>: Display,
Source§impl<C, P> Error for BootstrapReservationError<C, P>
impl<C, P> Error for BootstrapReservationError<C, P>
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<C: PartialEq, P: PartialEq> PartialEq for BootstrapReservationError<C, P>
impl<C: PartialEq, P: PartialEq> PartialEq for BootstrapReservationError<C, P>
Source§fn eq(&self, other: &BootstrapReservationError<C, P>) -> bool
fn eq(&self, other: &BootstrapReservationError<C, P>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<C: Eq, P: Eq> Eq for BootstrapReservationError<C, P>
impl<C, P> StructuralPartialEq for BootstrapReservationError<C, P>
Auto Trait Implementations§
impl<C, P> Freeze for BootstrapReservationError<C, P>
impl<C, P> RefUnwindSafe for BootstrapReservationError<C, P>where
P: RefUnwindSafe,
C: RefUnwindSafe,
impl<C, P> Send for BootstrapReservationError<C, P>
impl<C, P> Sync for BootstrapReservationError<C, P>
impl<C, P> Unpin for BootstrapReservationError<C, P>
impl<C, P> UnsafeUnpin for BootstrapReservationError<C, P>where
P: UnsafeUnpin,
C: UnsafeUnpin,
impl<C, P> UnwindSafe for BootstrapReservationError<C, P>where
P: UnwindSafe,
C: UnwindSafe,
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