pub enum AclError {
Length(usize),
Size(u16, usize),
AceCount(u16, usize),
Ace(usize, AceError),
}Expand description
Error returned when parsing an ACL.
Variants§
Length(usize)
The packet is shorter than an ACL header or is not DWORD-aligned.
Size(u16, usize)
The declared packet size differs from the supplied byte length.
AceCount(u16, usize)
Fewer ACE packets could be read than the header declares.
Ace(usize, AceError)
An ACE at the supplied index is malformed.
Trait Implementations§
impl Eq for AclError
Source§impl Error for AclError
impl Error for AclError
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 AclError
Auto Trait Implementations§
impl Freeze for AclError
impl RefUnwindSafe for AclError
impl Send for AclError
impl Sync for AclError
impl Unpin for AclError
impl UnsafeUnpin for AclError
impl UnwindSafe for AclError
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