ReceiveStreamState enum

Lifecycle states for the receiving half of a QUIC stream (RFC 9000 Section 3.2).

Mirrors SendStreamState for the receiver. The stream starts in recv and progresses toward the terminal states dataRead (all bytes consumed by the application) or resetRead (peer-initiated abort acknowledged).

See also:

  • ReceiveStateMachine — manages transitions between these states.
  • SendStreamState — the corresponding send-side states.
  • RFC 9000 Section 3.2 — receiving-side stream states.
Inheritance
Available extensions

Values

recv → const ReceiveStreamState

Receiving data; final size not yet known.

sizeKnown → const ReceiveStreamState

FIN received or RESET_STREAM received; final size is now known.

dataReceived → const ReceiveStreamState

All data up to final size has been received.

dataRead → const ReceiveStreamState

Application has read all data up to final size.

resetReceived → const ReceiveStreamState

RESET_STREAM frame received from peer.

resetRead → const ReceiveStreamState

Application has read the reset indication.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<ReceiveStreamState>
A constant List of the values in this enum, in order of their declaration.