enum NegotiationStatus {
    NonNegotiated,
    Possible {
        key_frame: (u64, Box<Header>, Vec<u8>),
    },
    DrainingQueuedBuffers,
    Negotiated,
}
Expand description

Represents where we are in the negotiation status. We assume ownership of the incoming buffers in this special case so that clients do not have to do the bookkeeping themselves.

Variants

NonNegotiated

Still waiting for a key frame.

Possible

Fields

key_frame: (u64, Box<Header>, Vec<u8>)

Saw a key frame. Negotiation is possible until the next call to decode()

DrainingQueuedBuffers

Processing the queued buffers.

Negotiated

Negotiated. Locks in the format until a new key frame is seen if that new key frame changes the stream parameters.

Trait Implementations

Returns the “default value” for a type. Read more

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.

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.