pub enum AceError {
Length(usize),
Size(u16, usize),
Alignment(usize),
Bounds(usize),
Body,
Sid,
}Expand description
Error returned when parsing an ACE.
Variants§
Length(usize)
The packet is shorter than an ACE header.
Size(u16, usize)
The declared packet size differs from the supplied byte length.
Alignment(usize)
The packet is not DWORD-aligned.
Bounds(usize)
An ACE declared inside an ACL extends beyond that ACL’s bytes.
Body
A recognized ACE body is truncated or malformed.
Sid
The ACE’s embedded SID is malformed.
Trait Implementations§
impl Eq for AceError
Source§impl Error for AceError
impl Error for AceError
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()
impl StructuralPartialEq for AceError
Auto Trait Implementations§
impl Freeze for AceError
impl RefUnwindSafe for AceError
impl Send for AceError
impl Sync for AceError
impl Unpin for AceError
impl UnsafeUnpin for AceError
impl UnwindSafe for AceError
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