#[non_exhaustive]pub enum DelegateContainer {
Wasm(DelegateWasmAPIVersion),
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Wasm(DelegateWasmAPIVersion)
Implementations§
Source§impl DelegateContainer
impl DelegateContainer
pub fn key(&self) -> &DelegateKey
pub fn code(&self) -> &DelegateCode<'_>
pub fn code_hash(&self) -> &CodeHash
Trait Implementations§
Source§impl Clone for DelegateContainer
impl Clone for DelegateContainer
Source§fn clone(&self) -> DelegateContainer
fn clone(&self) -> DelegateContainer
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DelegateContainer
impl Debug for DelegateContainer
Source§impl<'de> Deserialize<'de> for DelegateContainer
impl<'de> Deserialize<'de> for DelegateContainer
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<DelegateContainer> for APIVersion
impl From<DelegateContainer> for APIVersion
Source§fn from(delegate: DelegateContainer) -> APIVersion
fn from(delegate: DelegateContainer) -> APIVersion
Converts to this type from the input type.
Source§impl PartialEq for DelegateContainer
impl PartialEq for DelegateContainer
Source§impl Serialize for DelegateContainer
impl Serialize for DelegateContainer
Source§impl<'a> TryFrom<(&'a Path, Parameters<'static>)> for DelegateContainer
impl<'a> TryFrom<(&'a Path, Parameters<'static>)> for DelegateContainer
Source§impl<'a, P> TryFrom<(Vec<u8>, P)> for DelegateContainerwhere
P: Deref<Target = Parameters<'a>>,
impl<'a, P> TryFrom<(Vec<u8>, P)> for DelegateContainerwhere
P: Deref<Target = Parameters<'a>>,
impl Eq for DelegateContainer
impl StructuralPartialEq for DelegateContainer
Auto Trait Implementations§
impl Freeze for DelegateContainer
impl RefUnwindSafe for DelegateContainer
impl Send for DelegateContainer
impl Sync for DelegateContainer
impl Unpin for DelegateContainer
impl UnwindSafe for DelegateContainer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more