pub struct PendingRequest {
pub method: String,
pub uri: String,
pub meta: Vec<u8>,
pub headers: Vec<(String, String)>,
pub body: Vec<u8>,
pub sent: bool,
pub response: Option<Vec<u8>>,
pub read: usize,
pub response_headers: Vec<(String, String)>,
}
Expand description
Pending request.
Fields
method: String
HTTP method
uri: String
URI
meta: Vec<u8>
Encoded Metadata
headers: Vec<(String, String)>
Request headers
body: Vec<u8>
Request body
sent: bool
Has the request been sent already.
response: Option<Vec<u8>>
Response body
read: usize
Number of bytes already read from the response body.
response_headers: Vec<(String, String)>
Response headers
Trait Implementations
Returns the “default value” for a type. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for PendingRequest
impl Send for PendingRequest
impl Sync for PendingRequest
impl Unpin for PendingRequest
impl UnwindSafe for PendingRequest
Blanket Implementations
Mutably borrows from an owned value. Read more
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more
The counterpart to unchecked_from
.
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more