[][src]Enum swf_parser::complete::SwfParseError

pub enum SwfParseError {
    InvalidSignature,
    InvalidPayload,
    InvalidHeader,
}

Represents the possible parse errors when parsing an SWF file.

Fatal errors can only occur at the beginning of the parsing. Once the header is parsed, the tags are always parsed successfully. Invalid tags produce Raw tags but don't prevent the parser from completing: the parser is resilient to invalid (or unknown) tags.

Variants

InvalidSignature

Indicates an invalid SWF signature.

The SWF signature corresponds to the first 8 bytes of the movie. This error occurs either if there is not enough data to even parse the signature or if the compression method is invalid.

InvalidPayload

Indicates a failure to decompress the payload.

The payload represents all the data following the SWF signature. If the SWF file uses a compressed payload (Deflate or Lzma), this error is emitted when the decompression fails for any reason.

InvalidHeader

Indicates an invalid movie header.

The movie header corresponds to the first few bytes of the payload. This error occurs if there is not enough data to parse the header.

Trait Implementations

impl Clone for SwfParseError[src]

impl Copy for SwfParseError[src]

impl Debug for SwfParseError[src]

impl Eq for SwfParseError[src]

impl Hash for SwfParseError[src]

impl Ord for SwfParseError[src]

impl PartialEq<SwfParseError> for SwfParseError[src]

impl PartialOrd<SwfParseError> for SwfParseError[src]

impl StructuralEq for SwfParseError[src]

impl StructuralPartialEq for SwfParseError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.