pub enum MedusaNameFormatError {
NameIsEmpty,
NameStartsWithSlash(String),
NameStartsWithDotSlash(String),
NameEndsWithSlash(String),
NameHasDoubleSlash(String),
}Expand description
Allowed zip format quirks that we refuse to handle right now.
Variants§
NameIsEmpty
name is empty
NameStartsWithSlash(String)
name starts with ‘/’: {0}
NameStartsWithDotSlash(String)
name starts wtih ‘./’: {0}
NameEndsWithSlash(String)
name ends with ‘/’: {0}
NameHasDoubleSlash(String)
name has ‘//’: {0}
Trait Implementations§
source§impl Debug for MedusaNameFormatError
impl Debug for MedusaNameFormatError
source§impl Display for MedusaNameFormatError
impl Display for MedusaNameFormatError
source§impl Error for MedusaNameFormatError
impl Error for MedusaNameFormatError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 From<MedusaNameFormatError> for InputConsistencyError
impl From<MedusaNameFormatError> for InputConsistencyError
source§fn from(source: MedusaNameFormatError) -> Self
fn from(source: MedusaNameFormatError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for MedusaNameFormatError
impl Send for MedusaNameFormatError
impl Sync for MedusaNameFormatError
impl Unpin for MedusaNameFormatError
impl UnwindSafe for MedusaNameFormatError
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