pub struct BatchDescriptor {
pub start_slot: u32,
pub items: Vec<SlotDescriptor>,
}Expand description
A typed batch publication request.
Fields§
§start_slot: u32Slot index where the first item should be written.
items: Vec<SlotDescriptor>Items to publish in order.
Implementations§
Source§impl BatchDescriptor
impl BatchDescriptor
Sourcepub fn new(start_slot: u32, items: Vec<SlotDescriptor>) -> Self
pub fn new(start_slot: u32, items: Vec<SlotDescriptor>) -> Self
Convenience constructor.
Sourcepub fn publish_into(&self, ring_bytes: &mut [u8]) -> Result<u32, PipelineError>
pub fn publish_into(&self, ring_bytes: &mut [u8]) -> Result<u32, PipelineError>
Publish all items into the ring. Returns the number of slots consumed.
§Errors
Propagates any slot publication error.
Trait Implementations§
Source§impl Clone for BatchDescriptor
impl Clone for BatchDescriptor
Source§fn clone(&self) -> BatchDescriptor
fn clone(&self) -> BatchDescriptor
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 BatchDescriptor
impl Debug for BatchDescriptor
impl Eq for BatchDescriptor
Source§impl PartialEq for BatchDescriptor
impl PartialEq for BatchDescriptor
Source§fn eq(&self, other: &BatchDescriptor) -> bool
fn eq(&self, other: &BatchDescriptor) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BatchDescriptor
Auto Trait Implementations§
impl Freeze for BatchDescriptor
impl RefUnwindSafe for BatchDescriptor
impl Send for BatchDescriptor
impl Sync for BatchDescriptor
impl Unpin for BatchDescriptor
impl UnsafeUnpin for BatchDescriptor
impl UnwindSafe for BatchDescriptor
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.