pub enum OverlayError {
Io {
path: String,
reason: String,
},
TooLarge {
path: String,
bytes: u64,
},
Overlay(OverlayError),
Parent(ParentPolicyError),
IdCollision {
key: String,
id: String,
},
NotAChild,
Cert(String),
ApprovalOverlapsDeny {
key: String,
glob: String,
parent_glob: String,
},
OverlayMissing,
PinCorrupt {
path: String,
reason: String,
},
PinMissing,
Revoked(String),
}Expand description
Why an overlay, a parent policy or their merge was refused.
Variants§
Io
A file could not be read.
TooLarge
A file is over MAX_FILE_BYTES.
Overlay(OverlayError)
The overlay broke the tighten-only rule (package A’s error).
Parent(ParentPolicyError)
The parent policy is not acceptable.
IdCollision
Two rules the merge would emit share an id.
NotAChild
profile = "project" but the kernel is not a child kernel.
Cert(String)
The project certificate is missing or does not verify.
ApprovalOverlapsDeny
An overlay approval glob overlaps a glob the parent denies; an approval must never turn a deny into a question.
OverlayMissing
overlay.toml is gone although a non-empty overlay is in force.
Clear an overlay with an empty file, never by deleting it.
PinCorrupt
The rollback pin exists but cannot be read.
PinMissing
No rollback pin, yet the chain records an applied overlay.
Revoked(String)
The project was revoked by its user daemon.
Implementations§
Source§impl OverlayError
impl OverlayError
Trait Implementations§
Source§impl Clone for OverlayError
impl Clone for OverlayError
Source§impl Debug for OverlayError
impl Debug for OverlayError
Source§impl Display for OverlayError
impl Display for OverlayError
Source§impl Error for OverlayError
impl Error for OverlayError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<OverlayError> for OverlayError
impl From<OverlayError> for OverlayError
Source§fn from(source: OverlayError) -> Self
fn from(source: OverlayError) -> Self
Source§impl From<ParentPolicyError> for OverlayError
impl From<ParentPolicyError> for OverlayError
Source§fn from(source: ParentPolicyError) -> Self
fn from(source: ParentPolicyError) -> Self
Source§impl PartialEq for OverlayError
impl PartialEq for OverlayError
impl StructuralPartialEq for OverlayError
Auto Trait Implementations§
impl Freeze for OverlayError
impl RefUnwindSafe for OverlayError
impl Send for OverlayError
impl Sync for OverlayError
impl Unpin for OverlayError
impl UnsafeUnpin for OverlayError
impl UnwindSafe for OverlayError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString. Read moreSource§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.