pub enum BootstrapNamespaceError {
EmptyHolderId,
NamespaceAlreadyExists {
namespace_id: NamespaceId,
},
NamespaceDeleted {
namespace_id: NamespaceId,
},
Head(ControlObjectLoadError),
Core(CoreError),
}Variants§
EmptyHolderId
NamespaceAlreadyExists
Fields
§
namespace_id: NamespaceIdNamespaceDeleted
Fields
§
namespace_id: NamespaceIdHead(ControlObjectLoadError)
Core(CoreError)
A failure inside the installation protocol shared with fork — the
head write itself, or engine plumbing such as assembling the
mutation context. The wire code delegates to
CoreError::code, so store failures keep
their failure class.
Implementations§
Source§impl BootstrapNamespaceError
impl BootstrapNamespaceError
Sourcepub fn code(&self) -> ErrorCode
pub fn code(&self) -> ErrorCode
Returns the stable machine-readable reason for this error.
This is the single source of truth for the wire code every surface
(HTTP server, CLI) reports for a bootstrap failure, mirroring
CoreError::code.
Sourcepub fn details(&self) -> Option<ErrorDetails>
pub fn details(&self) -> Option<ErrorDetails>
Returns the structured context the code’s consumers report beside it,
mirroring CoreError::details: only the
wrapped core failure carries any.
Trait Implementations§
Source§impl Clone for BootstrapNamespaceError
impl Clone for BootstrapNamespaceError
Source§fn clone(&self) -> BootstrapNamespaceError
fn clone(&self) -> BootstrapNamespaceError
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 Debug for BootstrapNamespaceError
impl Debug for BootstrapNamespaceError
Source§impl Display for BootstrapNamespaceError
impl Display for BootstrapNamespaceError
Source§impl Error for BootstrapNamespaceError
impl Error for BootstrapNamespaceError
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<ControlObjectLoadError> for BootstrapNamespaceError
impl From<ControlObjectLoadError> for BootstrapNamespaceError
Source§fn from(source: ControlObjectLoadError) -> Self
fn from(source: ControlObjectLoadError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BootstrapNamespaceError
impl RefUnwindSafe for BootstrapNamespaceError
impl Send for BootstrapNamespaceError
impl Sync for BootstrapNamespaceError
impl Unpin for BootstrapNamespaceError
impl UnsafeUnpin for BootstrapNamespaceError
impl UnwindSafe for BootstrapNamespaceError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more