Enum omicron_zone_package::cache::CacheError
source · pub enum CacheError {
CacheMiss {
reason: String,
},
Other(Error),
}Expand description
Errors that can be returned when looking up cached artifacts.
Variants§
CacheMiss
Identifies that cache lookup has failed, for a wide number of reasons, but that we should probably try to continue with package building anyway.
Other(Error)
Other errors, which could indicate a more fundamental problem.
These errors encourage callers to exit immediately, rather than treating the failure like a “miss”.
Trait Implementations§
source§impl Debug for CacheError
impl Debug for CacheError
source§impl Display for CacheError
impl Display for CacheError
source§impl Error for CacheError
impl Error for CacheError
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()
Auto Trait Implementations§
impl RefUnwindSafe for CacheError
impl Send for CacheError
impl Sync for CacheError
impl Unpin for CacheError
impl UnwindSafe for CacheError
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