pub enum MembersError {
BadLine(usize),
BadName(String),
Key(usize, KeyRefusal),
Duplicate(String),
BadLevel(String),
SshKeyIsAMethod {
name: String,
},
WrongLevel {
name: String,
kind: KeyKind,
level: Level,
},
}Expand description
Why the members file was refused.
Variants§
BadLine(usize)
A line that is not <name> <public key>.
BadName(String)
A member name outside [A-Za-z0-9._@-].
Key(usize, KeyRefusal)
A key that cannot be a recipient.
Duplicate(String)
The same key listed twice.
BadLevel(String)
A level line naming no level this version knows.
SshKeyIsAMethod
An SSH key listed as a member: it is an unlock method of its owner’s encryption key, and a repository is wrapped to that key instead.
WrongLevel
A key that does not belong at the file’s level: an SSH or age1…
key in a quantum-safe repository, or an age1pq1… key in a classic one.
Trait Implementations§
Source§impl Clone for MembersError
impl Clone for MembersError
Source§impl Debug for MembersError
impl Debug for MembersError
Source§impl Display for MembersError
impl Display for MembersError
impl Eq for MembersError
Source§impl Error for MembersError
impl Error for MembersError
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()
Source§impl PartialEq for MembersError
impl PartialEq for MembersError
impl StructuralPartialEq for MembersError
Auto Trait Implementations§
impl Freeze for MembersError
impl RefUnwindSafe for MembersError
impl Send for MembersError
impl Sync for MembersError
impl Unpin for MembersError
impl UnsafeUnpin for MembersError
impl UnwindSafe for MembersError
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