#[repr(u8)]pub enum ResourceCostTrigger {
OnCreate = 0,
OnQueue = 1,
}Variants§
Trait Implementations§
Source§impl Clone for ResourceCostTrigger
impl Clone for ResourceCostTrigger
Source§fn clone(&self) -> ResourceCostTrigger
fn clone(&self) -> ResourceCostTrigger
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 ResourceCostTrigger
impl Debug for ResourceCostTrigger
Source§impl Enum for ResourceCostTrigger
impl Enum for ResourceCostTrigger
Source§type Discriminant = u8
type Discriminant = u8
The type used to store the enum discriminant
Source§fn discriminator(&self) -> Self::Discriminant
fn discriminator(&self) -> Self::Discriminant
Gets the discriminator of the current variant.
Source§impl Parcel for ResourceCostTrigger
impl Parcel for ResourceCostTrigger
Source§fn read_field(
__io_reader: &mut dyn Read,
__settings: &Settings,
_: &mut Hints,
) -> Result<Self, Error>
fn read_field( __io_reader: &mut dyn Read, __settings: &Settings, _: &mut Hints, ) -> Result<Self, Error>
Reads a value from a stream. Read more
Source§fn write_field(
&self,
__io_writer: &mut dyn Write,
__settings: &Settings,
_: &mut Hints,
) -> Result<(), Error>
fn write_field( &self, __io_writer: &mut dyn Write, __settings: &Settings, _: &mut Hints, ) -> Result<(), Error>
Writes a value to a stream.
Source§fn read(read: &mut dyn Read, settings: &Settings) -> Result<Self, Error>
fn read(read: &mut dyn Read, settings: &Settings) -> Result<Self, Error>
Reads a new item with a fresh set of hints. Read more
Source§fn write(&self, write: &mut dyn Write, settings: &Settings) -> Result<(), Error>
fn write(&self, write: &mut dyn Write, settings: &Settings) -> Result<(), Error>
Writes a value to a stream.
Source§fn into_stream(self, settings: &Settings) -> Result<Cursor<Vec<u8>>, Error>
fn into_stream(self, settings: &Settings) -> Result<Cursor<Vec<u8>>, Error>
Convers the value into a byte stream that implements
std::io::Read.Source§fn from_raw_bytes(bytes: &[u8], settings: &Settings) -> Result<Self, Error>
fn from_raw_bytes(bytes: &[u8], settings: &Settings) -> Result<Self, Error>
Parses a new value from its raw byte representation. Read more
Source§fn field_from_raw_bytes(
bytes: &[u8],
settings: &Settings,
hints: &mut Hints,
) -> Result<Self, Error>
fn field_from_raw_bytes( bytes: &[u8], settings: &Settings, hints: &mut Hints, ) -> Result<Self, Error>
Parses a new value from its raw byte representation. Read more
Source§fn raw_bytes(&self, settings: &Settings) -> Result<Vec<u8>, Error>
fn raw_bytes(&self, settings: &Settings) -> Result<Vec<u8>, Error>
Gets the raw byte representation of the value.
Source§impl PartialEq for ResourceCostTrigger
impl PartialEq for ResourceCostTrigger
Source§impl PartialOrd for ResourceCostTrigger
impl PartialOrd for ResourceCostTrigger
impl StructuralPartialEq for ResourceCostTrigger
Auto Trait Implementations§
impl Freeze for ResourceCostTrigger
impl RefUnwindSafe for ResourceCostTrigger
impl Send for ResourceCostTrigger
impl Sync for ResourceCostTrigger
impl Unpin for ResourceCostTrigger
impl UnwindSafe for ResourceCostTrigger
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