pub enum DatabaseBootstrapError {
Bootstrap(Arc<RuntimeBootstrapError<MemoryBootstrapAdmissionError>>),
Adoption(Arc<RuntimeAdoptionError>),
}Expand description
Failure to initialize the generated database’s stable-memory authority.
Cloning this error is cheap and preserves the original typed ic-memory
bootstrap or adoption cause cached by generated database wiring.
Variants§
Bootstrap(Arc<RuntimeBootstrapError<MemoryBootstrapAdmissionError>>)
Cold bootstrap failed before allocation authority could be published.
Adoption(Arc<RuntimeAdoptionError>)
Current host allocations do not satisfy this database’s declared authority.
Trait Implementations§
Source§impl Clone for DatabaseBootstrapError
impl Clone for DatabaseBootstrapError
Source§impl Debug for DatabaseBootstrapError
impl Debug for DatabaseBootstrapError
Source§impl Display for DatabaseBootstrapError
impl Display for DatabaseBootstrapError
Source§impl Error for DatabaseBootstrapError
impl Error for DatabaseBootstrapError
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 From<DatabaseBootstrapError> for Error
impl From<DatabaseBootstrapError> for Error
Source§fn from(err: DatabaseBootstrapError) -> Self
fn from(err: DatabaseBootstrapError) -> Self
Converts to this type from the input type.
Source§impl From<RuntimeAdoptionError> for DatabaseBootstrapError
impl From<RuntimeAdoptionError> for DatabaseBootstrapError
Source§fn from(source: RuntimeAdoptionError) -> Self
fn from(source: RuntimeAdoptionError) -> Self
Converts to this type from the input type.
Source§impl From<RuntimeBootstrapError<MemoryBootstrapAdmissionError>> for DatabaseBootstrapError
impl From<RuntimeBootstrapError<MemoryBootstrapAdmissionError>> for DatabaseBootstrapError
Source§fn from(source: RuntimeBootstrapError<MemoryBootstrapAdmissionError>) -> Self
fn from(source: RuntimeBootstrapError<MemoryBootstrapAdmissionError>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for DatabaseBootstrapError
impl !UnwindSafe for DatabaseBootstrapError
impl Freeze for DatabaseBootstrapError
impl Send for DatabaseBootstrapError
impl Sync for DatabaseBootstrapError
impl Unpin for DatabaseBootstrapError
impl UnsafeUnpin for DatabaseBootstrapError
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