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)>,
}Expand description
Pending request.
Fields
method: StringHTTP method
uri: StringURI
meta: Vec<u8>Encoded Metadata
headers: Vec<(String, String)>Request headers
body: Vec<u8>Request body
sent: boolHas the request been sent already.
response: Option<Vec<u8>>Response body
read: usizeNumber 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 PendingRequestimpl Send for PendingRequestimpl Sync for PendingRequestimpl Unpin for PendingRequestimpl UnwindSafe for PendingRequestBlanket Implementations
Mutably borrows from an owned value. Read more
impl<T> Downcast for T where
    T: Any, 
impl<T> Downcast for T where
    T: Any, 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
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>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
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)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
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = TShould always be Self
The counterpart to unchecked_from.
pub fn vzip(self) -> Vimpl<T> MaybeDebug for T where
    T: Debug,