#[non_exhaustive]pub enum DataStorageBuilderError {
LocalStorageRequired,
MetadataRequired,
}Expand description
Errors that can occur when building data storage instances.
This enum represents error conditions that can arise when creating data storage instances using the builder pattern.
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.
LocalStorageRequired
Local storage is required but not available in the current context.
MetadataRequired
Policy metadata is required but not available in the current context.
Trait Implementations§
Source§impl Debug for DataStorageBuilderError
impl Debug for DataStorageBuilderError
Source§impl Display for DataStorageBuilderError
impl Display for DataStorageBuilderError
Source§impl Error for DataStorageBuilderError
impl Error for DataStorageBuilderError
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()
Auto Trait Implementations§
impl Freeze for DataStorageBuilderError
impl RefUnwindSafe for DataStorageBuilderError
impl Send for DataStorageBuilderError
impl Sync for DataStorageBuilderError
impl Unpin for DataStorageBuilderError
impl UnwindSafe for DataStorageBuilderError
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