Struct sp_core::offchain::testing::PendingRequest [−][src]
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)>, }
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
impl Default for PendingRequest
[src]
impl Default for PendingRequest
[src]fn default() -> PendingRequest
[src]
impl PartialEq<PendingRequest> for PendingRequest
[src]
impl PartialEq<PendingRequest> for PendingRequest
[src]fn eq(&self, other: &PendingRequest) -> bool
[src]
fn ne(&self, other: &PendingRequest) -> bool
[src]
impl Eq for PendingRequest
[src]
impl StructuralEq for PendingRequest
[src]
impl StructuralPartialEq for PendingRequest
[src]
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
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, Outer> IsWrappedBy<Outer> for T where
T: From<Outer>,
Outer: AsRef<T> + AsMut<T> + From<T>,
[src]
impl<T, Outer> IsWrappedBy<Outer> for T where
T: From<Outer>,
Outer: AsRef<T> + AsMut<T> + From<T>,
[src]impl<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>,
[src]
impl<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>,
[src]pub fn unchecked_into(Self) -> T
[src]
impl<T> MaybeDebug for T where
T: Debug,
[src]
T: Debug,
impl<T> MaybeRefUnwindSafe for T where
T: RefUnwindSafe,
[src]
T: RefUnwindSafe,