pub enum DsStoreError {
TruncatedHeader {
got: usize,
needed: usize,
},
BadMagic {
word0: u32,
magic: [u8; 4],
},
RootOffsetMismatch {
first: u32,
second: u32,
},
OutOfBounds {
what: &'static str,
},
NoDsdb,
UnknownDataType {
typecode: [u8; 4],
},
}Expand description
Errors returned while parsing a .DS_Store put-back store.
Variants§
TruncatedHeader
The file is shorter than the 36-byte Bud1 header.
BadMagic
The leading 00 00 00 01 / Bud1 magic is wrong. Carries the offending
bytes for the investigator.
Fields
RootOffsetMismatch
The two copies of the root-block offset in the header disagree — the allocator is inconsistent (Finder rejects such files).
OutOfBounds
A block address points outside the file, or a structure overruns its block. Carries the operation for diagnosis.
NoDsdb
The allocator’s table of contents has no DSDB B-tree entry.
UnknownDataType
A record carried a .DS_Store data-type code the format does not define,
so the record stream cannot be safely advanced. Carries the bytes.
Trait Implementations§
Source§impl Debug for DsStoreError
impl Debug for DsStoreError
Source§impl Display for DsStoreError
impl Display for DsStoreError
impl Eq for DsStoreError
Source§impl Error for DsStoreError
impl Error for DsStoreError
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 DsStoreError
impl PartialEq for DsStoreError
Source§fn eq(&self, other: &DsStoreError) -> bool
fn eq(&self, other: &DsStoreError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DsStoreError
Auto Trait Implementations§
impl Freeze for DsStoreError
impl RefUnwindSafe for DsStoreError
impl Send for DsStoreError
impl Sync for DsStoreError
impl Unpin for DsStoreError
impl UnsafeUnpin for DsStoreError
impl UnwindSafe for DsStoreError
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