Enum tet_core::offchain::StorageKind[][src]

#[repr(C)]pub enum StorageKind {
    PERSISTENT,
    LOCAL,
}

A type of supported crypto.

Variants

PERSISTENT

Persistent storage is non-revertible and not fork-aware. It means that any value set by the offchain worker triggered at block N(hash1) is persisted even if that block is reverted as non-canonical and is available for the worker that is re-run at block N(hash2). This storage can be used by offchain workers to handle forks and coordinate offchain workers running on different forks.

LOCAL

Local storage is revertible and fork-aware. It means that any value set by the offchain worker triggered at block N(hash1) is reverted if that block is reverted as non-canonical and is NOT available for the worker that is re-run at block N(hash2).

Trait Implementations

impl Clone for StorageKind[src]

impl Copy for StorageKind[src]

impl Debug for StorageKind[src]

impl Decode for StorageKind[src]

impl<'de> Deserialize<'de> for StorageKind[src]

impl Encode for StorageKind[src]

impl EncodeLike<StorageKind> for StorageKind[src]

impl Eq for StorageKind[src]

impl PartialEq<StorageKind> for StorageKind[src]

impl PassBy for StorageKind[src]

type PassBy = Enum<StorageKind>

The strategy that should be used to pass the type.

impl Serialize for StorageKind[src]

impl StructuralEq for StorageKind[src]

impl StructuralPartialEq for StorageKind[src]

impl TryFrom<u32> for StorageKind[src]

type Error = ()

The type returned in the event of a conversion error.

impl TryFrom<u8> for StorageKind[src]

type Error = ()

The type returned in the event of a conversion error.

Auto Trait Implementations

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: Decode + Encode
[src]

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

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

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Any + Send + Sync

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: ToOwned + Encode
[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

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

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>,