pub enum WritablePathsDeclError {
EmptyPath,
RelativePath {
path: String,
},
TraversingPath {
path: String,
},
DuplicatePath {
path: String,
},
}Expand description
Why a WRITABLE_PATHS_ANNOTATION value could not be read (R885-B11).
Every variant is a refusal to guess, for the reason
WorkloadSpec::writable_paths records: each entry becomes a grant, so a
value nobody can read unambiguously must fail admission rather than resolve
to whichever subtree the ambiguity happened to point at.
Variants§
EmptyPath
An empty entry — a stray or trailing comma. Skipping it silently would hide a truncated list.
RelativePath
A relative entry. There is no directory for it to be relative to: the declaration is read on the node, by a daemon whose own working directory is whatever systemd gave it.
TraversingPath
A . or .. component. The resolved path is not the written one.
DuplicatePath
The same path twice — one of the two is a mistake, and the reader cannot tell which.
Trait Implementations§
Source§impl Clone for WritablePathsDeclError
impl Clone for WritablePathsDeclError
Source§impl Debug for WritablePathsDeclError
impl Debug for WritablePathsDeclError
Source§impl Display for WritablePathsDeclError
impl Display for WritablePathsDeclError
impl Eq for WritablePathsDeclError
Source§impl Error for WritablePathsDeclError
impl Error for WritablePathsDeclError
1.30.0 · 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 PartialEq for WritablePathsDeclError
impl PartialEq for WritablePathsDeclError
impl StructuralPartialEq for WritablePathsDeclError
Auto Trait Implementations§
impl Freeze for WritablePathsDeclError
impl RefUnwindSafe for WritablePathsDeclError
impl Send for WritablePathsDeclError
impl Sync for WritablePathsDeclError
impl Unpin for WritablePathsDeclError
impl UnsafeUnpin for WritablePathsDeclError
impl UnwindSafe for WritablePathsDeclError
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.