Enum sp_core::offchain::HttpRequestStatus[][src]

pub enum HttpRequestStatus {
    DeadlineReached,
    IoError,
    Invalid,
    Finished(u16),
}

Status of the HTTP request

Variants

DeadlineReached

Deadline was reached while we waited for this request to finish.

Note the deadline is controlled by the calling part, it not necessarily means that the request has timed out.

IoError

An error has occurred during the request, for example a timeout or the remote has closed our socket.

The request is now considered destroyed. To retry the request you need to construct it again.

Invalid

The passed ID is invalid in this context.

Finished(u16)

The request has finished with given status code.

Trait Implementations

impl Clone for HttpRequestStatus[src]

impl Copy for HttpRequestStatus[src]

impl Debug for HttpRequestStatus[src]

impl Decode for HttpRequestStatus[src]

impl Encode for HttpRequestStatus[src]

impl EncodeLike<HttpRequestStatus> for HttpRequestStatus[src]

impl Eq for HttpRequestStatus[src]

impl PartialEq<HttpRequestStatus> for HttpRequestStatus[src]

impl PassBy for HttpRequestStatus[src]

type PassBy = Codec<HttpRequestStatus>

The strategy that should be used to pass the type.

impl StructuralEq for HttpRequestStatus[src]

impl StructuralPartialEq for HttpRequestStatus[src]

impl TryFrom<u32> for HttpRequestStatus[src]

type Error = ()

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for HttpRequestStatus

impl Send for HttpRequestStatus

impl Sync for HttpRequestStatus

impl Unpin for HttpRequestStatus

impl UnwindSafe for HttpRequestStatus

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<S> Codec for S where
    S: Encode + Decode
[src]

impl<T> DecodeAll for T where
    T: Decode
[src]

impl<T> DecodeLimit for T where
    T: Decode
[src]

impl<T> DynClone for T where
    T: Clone
[src]

impl<'_, '_, T> EncodeLike<&'_ &'_ T> for T where
    T: Encode
[src]

impl<'_, T> EncodeLike<&'_ T> for T where
    T: Encode
[src]

impl<'_, T> EncodeLike<&'_ mut T> for T where
    T: Encode
[src]

impl<T> EncodeLike<Arc<T>> for T where
    T: Encode
[src]

impl<T> EncodeLike<Box<T, Global>> for T where
    T: Encode
[src]

impl<'a, T> EncodeLike<Cow<'a, T>> for T where
    T: Encode + ToOwned
[src]

impl<T> EncodeLike<Rc<T>> for T where
    T: Encode
[src]

impl<T> From<T> for T[src]

impl<T> FromFFIValue for T where
    T: PassBy
[src]

type SelfInstance = T

As Self can be an unsized type, it needs to be represented by a sized type at the host. This SelfInstance is the sized type. Read more

impl<S> FullCodec for S where
    S: Decode + FullEncode
[src]

impl<S> FullEncode for S where
    S: Encode + EncodeLike<S>, 
[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoFFIValue for T where
    T: PassBy
[src]

impl<T, Outer> IsWrappedBy<Outer> for T where
    T: From<Outer>,
    Outer: AsRef<T> + AsMut<T> + From<T>, 
[src]

pub fn from_ref(&Outer) -> &T[src]

Get a reference to the inner from the outer.

pub fn from_mut(&mut Outer) -> &mut T[src]

Get a mutable reference to the inner from the outer.

impl<T> KeyedVec for T where
    T: Codec
[src]

impl<T> MaybeDebug for T where
    T: Debug
[src]

impl<T> MaybeRefUnwindSafe for T where
    T: RefUnwindSafe
[src]

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> RIType for T where
    T: PassBy
[src]

type FFIType = <<T as PassBy>::PassBy as RIType>::FFIType

The ffi type that is used to represent Self.

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<S, T> UncheckedInto<T> for S where
    T: UncheckedFrom<S>, 
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]