pub enum SlotOpcode {
Builtin(BuiltinOpcode),
Custom(u32),
}Expand description
A slot opcode can target either a builtin wire opcode or a caller-defined
extension registered via an opcode handler (see handlers module).
Variants§
Builtin(BuiltinOpcode)
One of the frozen builtins in protocol::opcode.
Custom(u32)
A custom extension opcode.
Implementations§
Trait Implementations§
Source§impl Clone for SlotOpcode
impl Clone for SlotOpcode
Source§fn clone(&self) -> SlotOpcode
fn clone(&self) -> SlotOpcode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SlotOpcode
impl Debug for SlotOpcode
Source§impl PartialEq for SlotOpcode
impl PartialEq for SlotOpcode
Source§fn eq(&self, other: &SlotOpcode) -> bool
fn eq(&self, other: &SlotOpcode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SlotOpcode
impl Eq for SlotOpcode
impl StructuralPartialEq for SlotOpcode
Auto Trait Implementations§
impl Freeze for SlotOpcode
impl RefUnwindSafe for SlotOpcode
impl Send for SlotOpcode
impl Sync for SlotOpcode
impl Unpin for SlotOpcode
impl UnsafeUnpin for SlotOpcode
impl UnwindSafe for SlotOpcode
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.