pub enum ValidateError {
Show 21 variants
InvalidMagic {
found_magic: u32,
},
InvalidSignatureLength {
found_length: u32,
},
InvalidSignature {
found_signature: Vec<u8>,
},
InvalidPolicyVersion {
found_policy_version: u32,
},
InvalidExtensibleBitmapItemSize {
found_size: u32,
},
MisalignedExtensibleBitmapHighBit {
found_size: u32,
found_high_bit: u32,
},
InvalidExtensibleBitmapHighBit {
found_size: u32,
found_high_bit: u32,
found_count: u32,
},
InvalidExtensibleBitmapCount {
found_count: u32,
},
ExtensibleBitmapNonZeroHighBitAndZeroCount,
MisalignedExtensibleBitmapItemStartBit {
found_start_bit: u32,
found_size: u32,
},
OutOfOrderExtensibleBitmapItems {
found_start_bit: u32,
min_start: u32,
},
ExtensibleBitmapItemOverflow {
found_items_end: u32,
found_high_bit: u32,
},
InvalidClassDefault {
value: u32,
},
InvalidClassDefaultRange {
value: u32,
},
MissingInitialSid {
initial_sid: InitialSid,
},
InvalidFsUseType {
value: u32,
},
NonOptionalIdIsZero,
NotImplemented,
UnknownId {
kind: &'static str,
id: String,
},
InvalidMlsRange {
low: BString,
high: BString,
},
InvalidExtendedPermissionsType {
type_: u8,
},
}
Expand description
Structured errors that may be encountered validating a binary policy.
Variants§
InvalidMagic
InvalidSignatureLength
InvalidSignature
InvalidPolicyVersion
InvalidExtensibleBitmapItemSize
MisalignedExtensibleBitmapHighBit
InvalidExtensibleBitmapHighBit
InvalidExtensibleBitmapCount
ExtensibleBitmapNonZeroHighBitAndZeroCount
MisalignedExtensibleBitmapItemStartBit
OutOfOrderExtensibleBitmapItems
ExtensibleBitmapItemOverflow
InvalidClassDefault
InvalidClassDefaultRange
MissingInitialSid
Fields
§
initial_sid: InitialSid
InvalidFsUseType
NonOptionalIdIsZero
NotImplemented
UnknownId
InvalidMlsRange
InvalidExtendedPermissionsType
Trait Implementations§
Source§impl Debug for ValidateError
impl Debug for ValidateError
Source§impl Display for ValidateError
impl Display for ValidateError
Source§impl Error for ValidateError
impl Error for ValidateError
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 ValidateError
impl PartialEq for ValidateError
impl StructuralPartialEq for ValidateError
Auto Trait Implementations§
impl Freeze for ValidateError
impl RefUnwindSafe for ValidateError
impl Send for ValidateError
impl Sync for ValidateError
impl Unpin for ValidateError
impl UnwindSafe for ValidateError
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
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
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>
Converts
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>
Converts
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 more