pub enum Error {
IoError(Error),
NotSwf,
}
Expand description
The error type used by swf-headers.
Anything that could be considered a malformed or corrupt SWF falls into the broad category of NotSwf, along with everything else that can’t be a SWF file. This may change in the future
Implementations of From for a couple of error types are done to make using try!() around the place more convenient.
Variants§
IoError(Error)
Any IO error, either from directly reading files or from other libraries.
NotSwf
All-encompassing variant for anything that can’t be a swf file.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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