Struct sp_runtime::offchain::testing::PendingRequest [−][src]
pub struct PendingRequest { pub method: String, pub uri: String, pub meta: Vec<u8, Global>, pub headers: Vec<(String, String), Global>, pub body: Vec<u8, Global>, pub sent: bool, pub response: Option<Vec<u8, Global>>, pub read: usize, pub response_headers: Vec<(String, String), Global>, }
Pending request.
Fields
method: String
HTTP method
uri: String
URI
meta: Vec<u8, Global>
Encoded Metadata
headers: Vec<(String, String), Global>
Request headers
body: Vec<u8, Global>
Request body
sent: bool
Has the request been sent already.
response: Option<Vec<u8, Global>>
Response body
read: usize
Number of bytes already read from the response body.
response_headers: Vec<(String, String), Global>
Response headers
Trait Implementations
impl Debug for PendingRequest
[src]
impl Debug for PendingRequest
[src]impl Default for PendingRequest
[src]
impl Default for PendingRequest
[src]pub fn default() -> PendingRequest
[src]
impl PartialEq<PendingRequest> for PendingRequest
[src]
impl PartialEq<PendingRequest> for PendingRequest
[src]pub fn eq(&self, other: &PendingRequest) -> bool
[src]
pub 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> CheckedConversion for T
[src]
impl<T> CheckedConversion for T
[src]fn checked_from<T>(t: T) -> Option<Self> where
Self: TryFrom<T>,
[src]
Self: TryFrom<T>,
fn checked_into<T>(self) -> Option<T> where
Self: TryInto<T>,
[src]
Self: TryInto<T>,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[src]
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<T> SaturatedConversion for T
[src]
impl<T> SaturatedConversion for T
[src]pub fn saturated_from<T>(t: T) -> Self where
Self: UniqueSaturatedFrom<T>,
[src]
Self: UniqueSaturatedFrom<T>,
pub fn saturated_into<T>(self) -> T where
Self: UniqueSaturatedInto<T>,
[src]
Self: UniqueSaturatedInto<T>,
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, S> UniqueSaturatedInto<T> for S where
T: Bounded,
S: TryInto<T>,
[src]
impl<T, S> UniqueSaturatedInto<T> for S where
T: Bounded,
S: TryInto<T>,
[src]pub fn unique_saturated_into(self) -> T
[src]
impl<T> MaybeDebug for T where
T: Debug,
[src]
T: Debug,
impl<T> MaybeDebug for T where
T: Debug,
[src]
T: Debug,
impl<T> MaybeRefUnwindSafe for T where
T: RefUnwindSafe,
[src]
T: RefUnwindSafe,