#[non_exhaustive]pub enum SaveError {
CabExists,
HeadTierWritesNotImplemented,
Unsupported(&'static str),
UnsupportedCodec(Codec),
Compress {
codec: Codec,
detail: &'static str,
},
Charge(ChargeError),
Read(Error),
Object(WriteError),
Range(&'static str),
Missing(&'static str),
}Expand description
A writer refusal. No assertion, narrowing cast or allocation may panic.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
CabExists
A writable CAB key already names a loaded reader.
HeadTierWritesNotImplemented
Serialized formats above 26 and bundle formats above 9 are outside the pinned HEAD writer’s supported formats.
Unsupported(&'static str)
A file kind or layout whose writer is outside this implementation.
UnsupportedCodec(Codec)
A codec without a UnityPy compression function.
Compress
The encoder refused the input or could not finish its stream.
Fields
Charge(ChargeError)
The input’s meter refused work, or its meter, budget or allocator refused storage.
Read(Error)
An original object’s reader refused its byte range.
Object(WriteError)
Reserializing the object’s typetree failed before installing data.
Range(&'static str)
A length or integer cannot be represented by the selected format.
Missing(&'static str)
A required field is absent (UnityPy’s assertion or struct error).
Trait Implementations§
impl Eq for SaveError
Source§impl Error for SaveError
impl Error for SaveError
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()