Enum jaded::StreamError

source ·
pub enum StreamError {
    EndOfStream(Error),
    NonJavaObject(u16),
    UnknownVersion(u16),
    UnknownMark(u8),
    UnrecognisedType(char),
    UnknownReference(u32),
    InvalidReference(&'static str),
    InvalidStream(&'static str),
    NotImplemented(&'static str),
}
Expand description

Error for things that can go wrong with deserialization

Variants§

§

EndOfStream(Error)

If the stream ends while the parser is still expecting more data

§

NonJavaObject(u16)

If the stream does not represent Serialized Java objects

§

UnknownVersion(u16)

If the stream version is not one we can handle

§

UnknownMark(u8)

If the next stream marker is not a value recognised by the serialization protocol

The byte read from the stream will be included in the error.

§

UnrecognisedType(char)

If the type or a field is not one of the allowed characters

The character being read as a type specification is included in the error

§

UnknownReference(u32)

If a back reference is to an unregistered handle

The unrecognised handle is included in the error

§

InvalidReference(&'static str)

If the reference registered to a handle is not of the correct type

The included string is the type that was expected, not the type found.

§

InvalidStream(&'static str)

The stream is not valid for some other reason

The included string gives an error message of the problem found.

§

NotImplemented(&'static str)

This feature is not implemented yet Some features are not possible without access to the Java source that wrote the stream.

Trait Implementations§

Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
The lower-level source of this error, if any. Read more
👎Deprecated since 1.42.0: use the Display impl or to_string()
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to provide by using demand. Read more
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.