#[non_exhaustive]pub enum ScanErrorKind {
IoError,
FileTooLarge,
JsonParseError,
YamlParseError,
InvalidEncoding,
OutsideRepository,
LimitExceeded,
WalkError,
InvalidExcludePattern,
}Expand description
The kind of scan-level failure that prevented a file from being validated.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
IoError
An I/O error occurred while reading the file.
FileTooLarge
The file exceeded the configured maximum size limit.
JsonParseError
The file content could not be parsed as valid JSON.
YamlParseError
The file content could not be parsed as valid YAML.
InvalidEncoding
The file content is not valid UTF-8.
OutsideRepository
The resolved path is outside the repository root (symlink escape).
LimitExceeded
A resource limit (max_files or max_total_bytes) was reached, truncating the scan.
WalkError
A directory traversal error (permission denied, loop detected, etc.).
InvalidExcludePattern
An exclude glob pattern could not be parsed.
Trait Implementations§
Source§impl Clone for ScanErrorKind
impl Clone for ScanErrorKind
Source§fn clone(&self) -> ScanErrorKind
fn clone(&self) -> ScanErrorKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScanErrorKind
impl Debug for ScanErrorKind
impl Eq for ScanErrorKind
Source§impl PartialEq for ScanErrorKind
impl PartialEq for ScanErrorKind
Source§fn eq(&self, other: &ScanErrorKind) -> bool
fn eq(&self, other: &ScanErrorKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ScanErrorKind
impl Serialize for ScanErrorKind
impl StructuralPartialEq for ScanErrorKind
Auto Trait Implementations§
impl Freeze for ScanErrorKind
impl RefUnwindSafe for ScanErrorKind
impl Send for ScanErrorKind
impl Sync for ScanErrorKind
impl Unpin for ScanErrorKind
impl UnsafeUnpin for ScanErrorKind
impl UnwindSafe for ScanErrorKind
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> GtsSerialize for Twhere
T: Serialize,
impl<T> GtsSerialize for Twhere
T: Serialize,
Source§fn gts_serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn gts_serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value using the GTS serialization protocol. Read more