pub enum PaxError {
InvalidRecords {
reason: &'static str,
},
InvalidUtf8,
InvalidKeyword {
keyword: String,
},
InvalidInteger {
keyword: &'static str,
value: String,
},
InvalidTime {
keyword: &'static str,
value: String,
},
UnsupportedCharset {
value: String,
},
ArithmeticOverflow {
context: &'static str,
},
}Expand description
An error encountered while parsing pax extended-header records.
Variants§
InvalidRecords
A pax payload did not consist of valid extended-header records.
InvalidUtf8
A pax text component that must be UTF-8 is not valid UTF-8.
InvalidKeyword
A pax record keyword is neither standard nor an accepted namespaced extension.
InvalidInteger
A pax decimal integer field is malformed or exceeds this API’s integer range.
Fields
InvalidTime
A pax file-time value is malformed or exceeds this API’s integer range.
Fields
UnsupportedCharset
A pax hdrcharset record requests text encoding unsupported by this API.
ArithmeticOverflow
A pax record length or offset overflowed.
Trait Implementations§
Source§impl Error for PaxError
impl Error for PaxError
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()
Auto Trait Implementations§
impl Freeze for PaxError
impl RefUnwindSafe for PaxError
impl Send for PaxError
impl Sync for PaxError
impl Unpin for PaxError
impl UnsafeUnpin for PaxError
impl UnwindSafe for PaxError
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