pub enum SlotDescriptor {
Single {
tenant_id: u32,
opcode: SlotOpcode,
args: Vec<u32>,
},
Packed {
tenant_id: u32,
ops: Vec<PackedOpDescriptor>,
},
}Expand description
One top-level slot publication request.
Variants§
Single
Publish one normal slot.
Fields
§
opcode: SlotOpcodeSlot opcode.
Packed
Publish one packed slot containing several inner ops.
Fields
§
ops: Vec<PackedOpDescriptor>Inner packed ops.
Implementations§
Source§impl SlotDescriptor
impl SlotDescriptor
Sourcepub fn single(tenant_id: u32, opcode: SlotOpcode, args: Vec<u32>) -> Self
pub fn single(tenant_id: u32, opcode: SlotOpcode, args: Vec<u32>) -> Self
Build a simple slot descriptor.
Sourcepub fn packed(tenant_id: u32, ops: Vec<PackedOpDescriptor>) -> Self
pub fn packed(tenant_id: u32, ops: Vec<PackedOpDescriptor>) -> Self
Build a packed-slot descriptor.
Sourcepub fn publish_into(
&self,
ring_bytes: &mut [u8],
slot_idx: u32,
) -> Result<(), PipelineError>
pub fn publish_into( &self, ring_bytes: &mut [u8], slot_idx: u32, ) -> Result<(), PipelineError>
Publish this slot into the ring at slot_idx.
§Errors
Propagates any wire-level publication error from the underlying ring protocol helpers.
Trait Implementations§
Source§impl Clone for SlotDescriptor
impl Clone for SlotDescriptor
Source§fn clone(&self) -> SlotDescriptor
fn clone(&self) -> SlotDescriptor
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 SlotDescriptor
impl Debug for SlotDescriptor
impl Eq for SlotDescriptor
Source§impl PartialEq for SlotDescriptor
impl PartialEq for SlotDescriptor
Source§fn eq(&self, other: &SlotDescriptor) -> bool
fn eq(&self, other: &SlotDescriptor) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SlotDescriptor
Auto Trait Implementations§
impl Freeze for SlotDescriptor
impl RefUnwindSafe for SlotDescriptor
impl Send for SlotDescriptor
impl Sync for SlotDescriptor
impl Unpin for SlotDescriptor
impl UnsafeUnpin for SlotDescriptor
impl UnwindSafe for SlotDescriptor
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.