Enum warg_server::datastore::DataStoreError
source · pub enum DataStoreError {
Show 17 variants
Conflict,
CheckpointNotFound(RegistryLen),
LogNotFound(LogId),
RecordNotFound(RecordId),
LogLeafNotFound(RegistryIndex),
RecordNotPending(RecordId),
InvalidRecordContents {
record_id: RecordId,
message: String,
},
OperatorValidationFailed(ValidationError),
PackageValidationFailed(ValidationError),
PackageNameConflict {
name: PackageName,
existing: PackageName,
},
PackageNamespaceConflict {
namespace: String,
existing: String,
},
PackageNamespaceNotDefined(String),
PackageNamespaceImported(String),
KeyUnauthorized(KeyID),
UnknownKey(KeyID),
SignatureVerificationFailed(Signature),
Rejection(String),
}Variants§
Conflict
CheckpointNotFound(RegistryLen)
LogNotFound(LogId)
RecordNotFound(RecordId)
LogLeafNotFound(RegistryIndex)
RecordNotPending(RecordId)
InvalidRecordContents
OperatorValidationFailed(ValidationError)
PackageValidationFailed(ValidationError)
PackageNameConflict
PackageNamespaceConflict
PackageNamespaceNotDefined(String)
PackageNamespaceImported(String)
UnknownKey(KeyID)
SignatureVerificationFailed(Signature)
Rejection(String)
Trait Implementations§
source§impl Debug for DataStoreError
impl Debug for DataStoreError
source§impl Display for DataStoreError
impl Display for DataStoreError
source§impl Error for DataStoreError
impl Error for DataStoreError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<DataStoreError> for CoreServiceError
impl From<DataStoreError> for CoreServiceError
source§fn from(source: DataStoreError) -> Self
fn from(source: DataStoreError) -> Self
Converts to this type from the input type.
source§impl From<ValidationError> for DataStoreError
impl From<ValidationError> for DataStoreError
source§fn from(source: ValidationError) -> Self
fn from(source: ValidationError) -> Self
Converts to this type from the input type.
source§impl From<ValidationError> for DataStoreError
impl From<ValidationError> for DataStoreError
source§fn from(source: ValidationError) -> Self
fn from(source: ValidationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for DataStoreError
impl Send for DataStoreError
impl Sync for DataStoreError
impl Unpin for DataStoreError
impl !UnwindSafe for DataStoreError
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