pub enum Action {
SendFrame {
stream_id: u64,
fin_stream: bool,
frame: Frame,
},
SendHeadersFrame {
stream_id: u64,
fin_stream: bool,
literal_headers: bool,
headers: Vec<Header>,
frame: Frame,
},
StreamBytes {
stream_id: u64,
fin_stream: bool,
bytes: Vec<u8>,
},
OpenUniStream {
stream_id: u64,
fin_stream: bool,
stream_type: u64,
},
ResetStream {
stream_id: u64,
error_code: u64,
},
StopSending {
stream_id: u64,
error_code: u64,
},
ConnectionClose {
error: ConnectionError,
},
FlushPackets,
Wait {
wait_type: WaitType,
},
}Expand description
An action which the HTTP/3 client should take.
The client iterates over a vector of said actions, executing each one
sequentially. Note that packets will be flushed when said iteration has
completed, regardless of if an Action::FlushPackets was the terminal
action.
Variants§
SendFrame
Send a [quiche::h3::frame::Frame] over a stream.
SendHeadersFrame
Send a HEADERS frame over a stream.
StreamBytes
Send arbitrary bytes over a stream.
OpenUniStream
Open a new unidirectional stream.
ResetStream
Send a RESET_STREAM frame with the given error code.
StopSending
Send a STOP_SENDING frame with the given error code.
ConnectionClose
Send a CONNECTION_CLOSE frame with the given ConnectionError.
Fields
§
error: ConnectionErrorFlushPackets
Wait
Wait for an event. See WaitType for the events.
Trait Implementations§
Source§impl From<&Action> for QlogEvents
impl From<&Action> for QlogEvents
Source§impl From<H3FrameCreatedEx> for Action
impl From<H3FrameCreatedEx> for Action
Source§fn from(value: H3FrameCreatedEx) -> Self
fn from(value: H3FrameCreatedEx) -> Self
Converts to this type from the input type.
impl Eq for Action
impl StructuralPartialEq for Action
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnwindSafe for Action
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more