pub enum CommandError {
Show 18 variants
DataDir(LockError),
MasterKey(KeyError),
WrongMasterKey,
BadPeriod(String),
Tenant(TenantError),
Open(RegistryError),
UnknownKey,
Output(Error),
SameMasterKey,
CheckFound(usize),
Backup(BackupError),
Storage(StorageError),
BadLevel(String),
BadTime(String),
BadTarget(String),
NoS3,
Export(ExportError),
Move {
tenant: TenantId,
why: String,
},
}Expand description
Why a command did not complete.
Variants§
DataDir(LockError)
MasterKey(KeyError)
WrongMasterKey
server.sqlite was made under another master key.
BadPeriod(String)
A period that is neither like 7y, 18m or 90d nor, where allowed,
default.
Tenant(TenantError)
Open(RegistryError)
The registry could not be opened.
UnknownKey
No key has this id.
Output(Error)
The output could not be written.
SameMasterKey
The new master key is the one already in use.
CheckFound(usize)
check found this many problems; its report says which.
Backup(BackupError)
Storage(StorageError)
The storage the configuration names cannot be used.
BadLevel(String)
Not none, counts or full.
BadTime(String)
Not an RFC 3339 time.
BadTarget(String)
Neither a directory nor an s3://bucket/prefix.
NoS3
An s3:// target with no [export.s3] or [storage.s3] table, or
in a build without S3.
Export(ExportError)
Move
Moving a tenant’s objects to the bucket stopped; what was moved stays moved, and running the command again moves the rest.
Trait Implementations§
Source§impl Debug for CommandError
impl Debug for CommandError
Source§impl Display for CommandError
impl Display for CommandError
Source§impl From<TenantError> for CommandError
impl From<TenantError> for CommandError
Source§fn from(e: TenantError) -> CommandError
fn from(e: TenantError) -> CommandError
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for CommandError
impl !UnwindSafe for CommandError
impl Forget for CommandError
impl Freeze for CommandError
impl Send for CommandError
impl Sync for CommandError
impl Unpin for CommandError
impl UnsafeUnpin for CommandError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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 moreCreates a shared type from an unshared type.