pub enum Error {
Gvariant(Error),
InvalidChecksum(&'static str),
InvalidBase64(&'static str),
InvalidObjectType(u32),
InvalidVarint(&'static str),
InvalidXattrs(&'static str),
InvalidSizeEntry(&'static str),
KeyFile(String),
InvalidCommit(&'static str),
InvalidDirTree(&'static str),
InvalidDirMeta(&'static str),
InvalidFileHeader(&'static str),
}Expand description
Errors produced by the core format primitives.
Variants§
Gvariant(Error)
A GVariant (de)serialization error from the codec layer.
InvalidChecksum(&'static str)
A checksum string or byte sequence was malformed.
InvalidBase64(&'static str)
A base64 string was malformed (invalid character or truncated group).
InvalidObjectType(u32)
An object-type numeric tag did not name a known type.
InvalidVarint(&'static str)
A LEB128 varint was truncated or overflowed 64 bits.
InvalidXattrs(&'static str)
An xattr set failed validation (empty, duplicate, or unsorted name).
InvalidSizeEntry(&'static str)
An ostree.sizes entry was malformed.
KeyFile(String)
A GKeyFile/INI document or a typed lookup was malformed.
InvalidCommit(&'static str)
A commit object violated a value-level convention.
InvalidDirTree(&'static str)
A dirtree object violated a value-level convention (bad file name, checksum length, or sort order).
InvalidDirMeta(&'static str)
A dirmeta object violated a value-level convention.
InvalidFileHeader(&'static str)
A file content-object header violated a value-level convention (nonzero rdev, non-REG/non-LNK mode, or a malformed blob reference).
Trait Implementations§
impl Eq for Error
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()