pub enum ClientSessionErrorKind {
ChunkDeserializationError(ChunkDeserializationError),
ChunkSerializationError(ChunkSerializationError),
MessageSerializationError(MessageSerializationError),
MessageDeserializationError(MessageDeserializationError),
CantConnectWhileAlreadyConnected,
SessionInInvalidState {
current_state: ClientState,
},
NoKnownActiveStreamIdWhenRequired,
CreateStreamFailed,
CreateStreamResponseHadNoStreamNumber,
InvalidOnStatusArguments,
}
Represents the type of error that occurred
Encountered when an error occurs while deserializing the incoming byte data
Encountered when an error occurs while serializing outbound messages
Encountered when an error occurs while turning an RTMP message into an message payload
Encountered when an error occurs while turning a message payload into an RTMP message
Encountered if a connection request is made while we are already connected
Encountered if a request is made, or a response is received for a request while the
client session is not in a valid state for that purpose.
Fields of SessionInInvalidState
Encountered when attempting to send a message that requires having an active stream
opened but none is marked down. This is almost always a bug with the ClientSession
as
this means we are in a valid state (e.g. Playing
or Publishing
) yet we never recorded
what stream id we are publishing/playing on.
Encountered when the client requests a stream be created and the server rejects the command
A response to a createStream
request should have a numeric as the first parameter
in the additional values property of the amf0 command. This error is thrown if this is
not present. Without a stream ID we have no way to know what stream to communicate with
for playback/publishing messages.
When the server sends and onStatus
message, it is expected that the additional arguments
contains a single value representing an amf0 object. This is required because the object
should have a code
property that says the type of operation the status is for.
Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
Returns a reference to the underlying cause of this failure, if it is an error that wraps other errors. Read more
Returns a reference to the Backtrace
carried by this failure, if it carries one. Read more
fn context<D>(self, context: D) -> Context<D> where D: Display + Send + Sync + 'static, | [src] |
Wraps this failure in a compatibility wrapper that implements std::error::Error
. Read more
Converts the given value to a String
. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Converts a reference to Self
into a dynamic trait object of Fail
.
Returns a reference to the underlying cause of this failure, if it is an error that wraps other errors. Read more
Returns a reference to the Backtrace
carried by this failure, if it carries one. Read more
fn context<D>(self, context: D) -> Context<D> where D: Display + Send + Sync + 'static, | [src] |
Wraps this failure in a compatibility wrapper that implements std::error::Error
. Read more