pub struct NewClientRequest {
pub request_id: u64,
pub headers: Vec<Header>,
pub body_writer: Option<Sender<OutboundFrameSender>>,
}
Expand description
An HTTP request sent using a ClientRequestSender to the ClientH3Driver.
Fields§
§request_id: u64
A user-defined identifier to match ClientH3Event::NewOutboundRequest
to its original NewClientRequest
. This ID is not used anywhere else.
headers: Vec<Header>
The [h3::Header
]s that make up this request.
body_writer: Option<Sender<OutboundFrameSender>>
A sender to pass the request’s OutboundFrameSender
to the request
body.
Trait Implementations§
Source§impl Debug for NewClientRequest
impl Debug for NewClientRequest
Source§impl From<NewClientRequest> for ClientH3Command
impl From<NewClientRequest> for ClientH3Command
Source§fn from(req: NewClientRequest) -> Self
fn from(req: NewClientRequest) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NewClientRequest
impl !RefUnwindSafe for NewClientRequest
impl Send for NewClientRequest
impl Sync for NewClientRequest
impl Unpin for NewClientRequest
impl !UnwindSafe for NewClientRequest
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> 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