Enum screeps::constants::IntershardResourceType  
source · pub enum IntershardResourceType {
    CpuUnlock,
    Pixel,
    AccessKey,
    // some variants omitted
}Expand description
Translates SUBSCRIPTION_TOKEN and INTERSHARD_RESOURCES constants.
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 copy 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 From<IntershardResourceType> for JsValue
 
impl From<IntershardResourceType> for JsValue
source§fn from(obj: IntershardResourceType) -> JsValue
 
fn from(obj: IntershardResourceType) -> JsValue
Converts to this type from the input type.
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 PartialEq<IntershardResourceType> for IntershardResourceType
 
impl PartialEq<IntershardResourceType> for IntershardResourceType
source§fn eq(&self, other: &IntershardResourceType) -> bool
 
fn eq(&self, other: &IntershardResourceType) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.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 StructuralEq for IntershardResourceType
impl StructuralPartialEq for IntershardResourceType
Auto Trait Implementations§
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> ReturnWasmAbi for Twhere
    T: IntoWasmAbi,
 
impl<T> ReturnWasmAbi for Twhere T: IntoWasmAbi,
§type Abi = <T as IntoWasmAbi>::Abi
 
type Abi = <T as IntoWasmAbi>::Abi
Same as 
IntoWasmAbi::Abisource§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.