pub enum DispatchKind {
Init,
Handle,
Reply,
Signal,
}
Expand description
Entry point for dispatch processing.
Variants§
Implementations§
Source§impl DispatchKind
impl DispatchKind
Sourcepub fn forbidden_funcs(&self) -> BTreeSet<SyscallName>
pub fn forbidden_funcs(&self) -> BTreeSet<SyscallName>
Syscalls that are not allowed to be called for the dispatch kind.
Trait Implementations§
Source§impl Clone for DispatchKind
impl Clone for DispatchKind
Source§fn clone(&self) -> DispatchKind
fn clone(&self) -> DispatchKind
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 DispatchKind
impl Debug for DispatchKind
Source§impl Decode for DispatchKind
impl Decode for DispatchKind
Source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<Self, Error>
fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy, ) -> Result<Self, Error>
Attempt to deserialise the value from input.
Source§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more
Source§impl Default for DispatchKind
impl Default for DispatchKind
Source§fn default() -> DispatchKind
fn default() -> DispatchKind
Returns the “default value” for a type. Read more
Source§impl Encode for DispatchKind
impl Encode for DispatchKind
Source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
Source§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)
fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy, )
Convert self to a slice and append it to the destination.
Source§fn using_encoded<R, F>(&self, f: F) -> R
fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.
Source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
Source§impl Hash for DispatchKind
impl Hash for DispatchKind
Source§impl Ord for DispatchKind
impl Ord for DispatchKind
Source§fn cmp(&self, other: &DispatchKind) -> Ordering
fn cmp(&self, other: &DispatchKind) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DispatchKind
impl PartialEq for DispatchKind
Source§impl PartialOrd for DispatchKind
impl PartialOrd for DispatchKind
Source§impl TypeInfo for DispatchKind
impl TypeInfo for DispatchKind
Source§impl WasmEntryPoint for DispatchKind
impl WasmEntryPoint for DispatchKind
Source§fn try_from_entry(entry: &str) -> Option<Self>
fn try_from_entry(entry: &str) -> Option<Self>
Converting entry point name into self object, if possible.
Source§fn try_into_kind(&self) -> Option<DispatchKind>
fn try_into_kind(&self) -> Option<DispatchKind>
Tries to convert self into
DispatchKind
.impl Copy for DispatchKind
impl EncodeLike for DispatchKind
impl Eq for DispatchKind
impl StructuralPartialEq for DispatchKind
Auto Trait Implementations§
impl Freeze for DispatchKind
impl RefUnwindSafe for DispatchKind
impl Send for DispatchKind
impl Sync for DispatchKind
impl Unpin for DispatchKind
impl UnwindSafe for DispatchKind
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