enum NegotiationStatus {
    NonNegotiated {
        queued_buffers: Vec<(u64, Vec<u8>)>,
    },
    Possible {
        queued_buffers: Vec<(u64, 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

Fields

queued_buffers: Vec<(u64, Vec<u8>)>

Still waiting for a SPS. Any incoming buffers are being queued in order.

Possible

Fields

queued_buffers: Vec<(u64, Vec<u8>)>

Saw an SPS. Negotiation is possible until the next call to decode()

DrainingQueuedBuffers

Processing the queued buffers.

Negotiated

Negotiated. Locks in the format until a new SPS is seen.

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.