Struct sp_sandbox::env::Entry

source ·
pub struct Entry {
    pub module_name: Vec<u8>,
    pub field_name: Vec<u8>,
    pub entity: ExternEntity,
}
Expand description

An entry in a environment definition table.

Each entry has a two-level name and description of an entity being defined.

Fields§

§module_name: Vec<u8>

Module name of which corresponding entity being defined.

§field_name: Vec<u8>

Field name in which corresponding entity being defined.

§entity: ExternEntity

External entity being defined.

Trait Implementations§

source§

impl Clone for Entry

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
source§

impl Debug for Entry

Formats the value using the given formatter. Read more
source§

impl Decode for Entry

Attempt to deserialise the value from input.
Attempt to skip the encoded value from input. Read more
Returns the fixed encoded size of the type. Read more
source§

impl Encode for Entry

Convert self to a slice and append it to the destination.
If possible give a hint of expected size of the encoding. Read more
Convert self to an owned vector.
Convert self to a slice and then invoke the given closure with it.
Calculates the encoded size. Read more
source§

impl PartialEq<Entry> for Entry

This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
source§

impl EncodeLike<Entry> for Entry

source§

impl Eq for Entry

source§

impl StructuralEq for Entry

source§

impl StructuralPartialEq for Entry

Auto Trait Implementations§

§

impl RefUnwindSafe for Entry

§

impl Send for Entry

§

impl Sync for Entry

§

impl Unpin for Entry

§

impl UnwindSafe for Entry

Blanket Implementations§

source§

impl<T> Any for Twhere
    T: 'static + ?Sized,

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere
    T: ?Sized,

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere
    T: ?Sized,

Mutably borrows from an owned value. Read more
source§

impl<T> Conv for T

Converts self into T using Into<T>. Read more
source§

impl<T> DecodeAll for Twhere
    T: Decode,

Decode Self and consume all of the given input data. Read more
source§

impl<T> DecodeLimit for Twhere
    T: Decode,

Decode Self and consume all of the given input data. Read more
Decode Self with the given maximum recursion depth and advance input by the number of bytes consumed. Read more
source§

impl<T> Downcast for Twhere
    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
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
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
source§

impl<T> DowncastSync for Twhere
    T: Any + Send + Sync,

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait. Read more
source§

impl<T> DynClone for Twhere
    T: Clone,

source§

impl<Q, K> Equivalent<K> for Qwhere
    Q: Eq + ?Sized,
    K: Borrow<Q> + ?Sized,

Compare self to key and return true if they are equal.
source§

impl<T> FmtForward for T

Causes self to use its Binary implementation when Debug-formatted. Read more
Causes self to use its Display implementation when Debug-formatted. Read more
Causes self to use its LowerExp implementation when Debug-formatted. Read more
Causes self to use its LowerHex implementation when Debug-formatted. Read more
Causes self to use its Octal implementation when Debug-formatted. Read more
Causes self to use its Pointer implementation when Debug-formatted. Read more
Causes self to use its UpperExp implementation when Debug-formatted. Read more
Causes self to use its UpperHex implementation when Debug-formatted. Read more
Formats each item in a sequence. Read more
source§

impl<T> From<T> for T

Returns the argument unchanged.

source§

impl<T> Instrument for T

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere
    U: From<T>,

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, Outer> IsWrappedBy<Outer> for Twhere
    Outer: AsRef<T> + AsMut<T> + From<T>,
    T: From<Outer>,

Get a reference to the inner from the outer.

Get a mutable reference to the inner from the outer.

source§

impl<T> KeyedVec for Twhere
    T: Codec,

Return an encoding of Self prepended by given slice.
source§

impl<T> Pipe for Twhere
    T: ?Sized,

Pipes by value. This is generally the method you want to use. Read more
Borrows self and passes that borrow into the pipe function. Read more
Mutably borrows self and passes that borrow into the pipe function. Read more
Borrows self, then passes self.borrow() into the pipe function. Read more
Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more
Borrows self, then passes self.as_ref() into the pipe function.
Mutably borrows self, then passes self.as_mut() into the pipe function. Read more
Borrows self, then passes self.deref() into the pipe function.
Mutably borrows self, then passes self.deref_mut() into the pipe function. Read more
source§

impl<T> Pointable for T

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same<T> for T

Should always be Self
source§

impl<T> Tap for T

Immutable access to a value. Read more
Mutable access to a value. Read more
Immutable access to the Borrow<B> of a value. Read more
Mutable access to the BorrowMut<B> of a value. Read more
Immutable access to the AsRef<R> view of a value. Read more
Mutable access to the AsMut<R> view of a value. Read more
Immutable access to the Deref::Target of a value. Read more
Mutable access to the Deref::Target of a value. Read more
Calls .tap() only in debug builds, and is erased in release builds.
Calls .tap_mut() only in debug builds, and is erased in release builds. Read more
Calls .tap_borrow() only in debug builds, and is erased in release builds. Read more
Calls .tap_borrow_mut() only in debug builds, and is erased in release builds. Read more
Calls .tap_ref() only in debug builds, and is erased in release builds. Read more
Calls .tap_ref_mut() only in debug builds, and is erased in release builds. Read more
Calls .tap_deref() only in debug builds, and is erased in release builds. Read more
Calls .tap_deref_mut() only in debug builds, and is erased in release builds. Read more
source§

impl<T> ToOwned for Twhere
    T: Clone,

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> TryConv for T

Attempts to convert self into T using TryInto<T>. Read more
source§

impl<T, U> TryFrom<U> for Twhere
    U: Into<T>,

The type returned in the event of a conversion error.
Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere
    U: TryFrom<T>,

The type returned in the event of a conversion error.
Performs the conversion.
source§

impl<S, T> UncheckedInto<T> for Swhere
    T: UncheckedFrom<S>,

The counterpart to unchecked_from.
source§

impl<V, T> VZip<V> for Twhere
    V: MultiLane<T>,

source§

impl<T> WithSubscriber for T

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<S> Codec for Swhere
    S: Decode + Encode,

source§

impl<T> EncodeLike<&&T> for Twhere
    T: Encode,

source§

impl<T> EncodeLike<&T> for Twhere
    T: Encode,

source§

impl<T> EncodeLike<&mut T> for Twhere
    T: Encode,

source§

impl<T> EncodeLike<Arc<T>> for Twhere
    T: Encode,

source§

impl<T> EncodeLike<Box<T, Global>> for Twhere
    T: Encode,

source§

impl<'a, T> EncodeLike<Cow<'a, T>> for Twhere
    T: ToOwned + Encode,

source§

impl<T> EncodeLike<Rc<T>> for Twhere
    T: Encode,

source§

impl<S> FullCodec for Swhere
    S: Decode + FullEncode,

source§

impl<S> FullEncode for Swhere
    S: Encode + EncodeLike<S>,

source§

impl<T> MaybeDebug for Twhere
    T: Debug,

source§

impl<T> MaybeDebug for Twhere
    T: Debug,

source§

impl<T> MaybeRefUnwindSafe for Twhere
    T: RefUnwindSafe,