pub enum TenantError {
Show 15 variants
NotFound,
NameTaken,
BadName,
HoldsVcons,
UnderHold,
LimitReached,
AuditFailed,
Closing,
CliOnly,
BadScopes,
BadExpiry,
BadSetting(SettingError),
WrongKey,
NoFileBackup,
Io,
}Expand description
Why a Tenants call was refused or failed.
Variants§
NotFound
No tenant has the id.
NameTaken
Another tenant has the name.
BadName
The name breaks the naming rule (good_name).
HoldsVcons
Removal::Empty was asked of a tenant that keeps versions.
UnderHold
Removal::Force was asked of a tenant with a uuid under a legal
hold.
LimitReached
The master key is at its wrap limit and must be rotated.
AuditFailed
The audit record could not be written, so nothing was done.
Closing
The tenant is being removed.
CliOnly
Only the command line may do this: make an operator key.
BadScopes
Scopes a key of its kind, or made by this caller, cannot hold.
BadExpiry
An expiry a new key cannot have: a number of days outside 1 to
365, days and no expiry asked together, or no expiry where the
configuration refuses it (keys.no_expiry).
BadSetting(SettingError)
A change to a tenant’s settings that the list of settings refuses.
WrongKey
server.sqlite was made under another master key.
NoFileBackup
A copy of the registry into a local file was asked of a registry
kept in PostgreSQL, which is backed up with the database’s own
tools (pg_dump).
Io
Trait Implementations§
Source§impl Clone for TenantError
impl Clone for TenantError
impl Copy for TenantError
Source§impl Debug for TenantError
impl Debug for TenantError
impl Eq for TenantError
Source§impl From<OpenFailure> for TenantError
impl From<OpenFailure> for TenantError
Source§fn from(f: OpenFailure) -> TenantError
fn from(f: OpenFailure) -> TenantError
Source§impl From<RegistryError> for TenantError
Every caller but the two that report it sees what TenantError can say.
impl From<RegistryError> for TenantError
Every caller but the two that report it sees what TenantError can say.
Source§fn from(e: RegistryError) -> TenantError
fn from(e: RegistryError) -> TenantError
Source§impl From<TenantError> for CommandError
impl From<TenantError> for CommandError
Source§fn from(e: TenantError) -> CommandError
fn from(e: TenantError) -> CommandError
Source§impl From<TenantError> for SessionError
impl From<TenantError> for SessionError
Source§fn from(e: TenantError) -> SessionError
fn from(e: TenantError) -> SessionError
Source§impl From<TenantError> for UserError
impl From<TenantError> for UserError
Source§fn from(e: TenantError) -> UserError
fn from(e: TenantError) -> UserError
Source§impl From<TenantError> for OpenFailure
impl From<TenantError> for OpenFailure
Source§fn from(e: TenantError) -> OpenFailure
fn from(e: TenantError) -> OpenFailure
Source§impl PartialEq for TenantError
impl PartialEq for TenantError
impl StructuralPartialEq for TenantError
Auto Trait Implementations§
impl Forget for TenantError
impl Freeze for TenantError
impl Move for TenantError
impl RefUnwindSafe for TenantError
impl Send for TenantError
impl Sync for TenantError
impl Unpin for TenantError
impl UnsafeUnpin for TenantError
impl UnwindSafe for TenantError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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> ⓘ
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> ⓘ
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