#[non_exhaustive]pub enum SpaceError {
UnknownEntity(String),
BadQuery(String),
MissingKey(String),
DuplicateKey {
entity: String,
key: String,
},
Conflict(String),
Refused(String),
Denied(String),
Storage(String),
}Expand description
Why a space could not do what it was asked.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
UnknownEntity(String)
There is no entity by this name.
BadQuery(String)
The filter or the sort does not fit the entity.
MissingKey(String)
The object has no key yet.
DuplicateKey
Another record already has this key.
Conflict(String)
The record is gone, or something else took it since this space read it.
Refused(String)
Something watching the commit refused it, with its reason.
Denied(String)
The person signed in cannot do this.
Storage(String)
Storage failed.
Trait Implementations§
Source§impl Clone for SpaceError
impl Clone for SpaceError
Source§fn clone(&self) -> SpaceError
fn clone(&self) -> SpaceError
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 SpaceError
impl Debug for SpaceError
Source§impl Display for SpaceError
impl Display for SpaceError
impl Eq for SpaceError
Source§impl Error for SpaceError
impl Error for SpaceError
1.30.0 · 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 PartialEq for SpaceError
impl PartialEq for SpaceError
impl StructuralPartialEq for SpaceError
Auto Trait Implementations§
impl Freeze for SpaceError
impl RefUnwindSafe for SpaceError
impl Send for SpaceError
impl Sync for SpaceError
impl Unpin for SpaceError
impl UnsafeUnpin for SpaceError
impl UnwindSafe for SpaceError
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