#[non_exhaustive]#[repr(u32)]pub enum IntershardResourceType {
CpuUnlock = 0,
Pixel = 1,
AccessKey = 2,
}
Expand description
Translates SUBSCRIPTION_TOKEN
and INTERSHARD_RESOURCES
constants.
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.
Implementations§
Source§impl IntershardResourceType
impl IntershardResourceType
pub fn from_js_value(obj: &JsValue) -> Option<IntershardResourceType>
Trait Implementations§
Source§impl Clone for IntershardResourceType
impl Clone for IntershardResourceType
Source§fn clone(&self) -> IntershardResourceType
fn clone(&self) -> IntershardResourceType
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 IntershardResourceType
impl Debug for IntershardResourceType
Source§impl<'de> Deserialize<'de> for IntershardResourceType
impl<'de> Deserialize<'de> for IntershardResourceType
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 Display for IntershardResourceType
impl Display for IntershardResourceType
Source§impl From<IntershardResourceType> for JsValue
impl From<IntershardResourceType> for JsValue
Source§fn from(val: IntershardResourceType) -> Self
fn from(val: IntershardResourceType) -> Self
Converts to this type from the input type.
Source§impl FromStr for IntershardResourceType
impl FromStr for IntershardResourceType
Source§impl FromWasmAbi for IntershardResourceType
impl FromWasmAbi for IntershardResourceType
Source§impl Hash for IntershardResourceType
impl Hash for IntershardResourceType
Source§impl IntoWasmAbi for IntershardResourceType
impl IntoWasmAbi for IntershardResourceType
Source§impl JsCollectionFromValue for IntershardResourceType
impl JsCollectionFromValue for IntershardResourceType
fn from_value(v: JsValue) -> IntershardResourceType
Source§impl JsCollectionIntoValue for IntershardResourceType
impl JsCollectionIntoValue for IntershardResourceType
fn into_value(self) -> JsValue
Source§impl PartialEq for IntershardResourceType
impl PartialEq for IntershardResourceType
Source§impl Sequence for IntershardResourceType
impl Sequence for IntershardResourceType
Source§impl Serialize for IntershardResourceType
impl Serialize for IntershardResourceType
impl Copy for IntershardResourceType
impl Eq for IntershardResourceType
impl StructuralPartialEq for IntershardResourceType
Auto Trait Implementations§
impl Freeze for IntershardResourceType
impl RefUnwindSafe for IntershardResourceType
impl Send for IntershardResourceType
impl Sync for IntershardResourceType
impl Unpin for IntershardResourceType
impl UnwindSafe for IntershardResourceType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
Source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.