pub struct ShardQueues { /* private fields */ }Expand description
Sending side of every shard queue, shared by pipeline threads.
Implementations§
Source§impl ShardQueues
impl ShardQueues
Sourcepub fn num_shards(&self) -> usize
pub fn num_shards(&self) -> usize
Number of shards.
Sourcepub fn try_send(
&self,
shard: usize,
chunk: EncodedChunk,
) -> Result<(), ChunkSendError>
pub fn try_send( &self, shard: usize, chunk: EncodedChunk, ) -> Result<(), ChunkSendError>
Non-blocking send to shard. On Err the chunk comes back and the
caller applies backpressure. A closed queue (sink shut down) also
returns the chunk; the driver observes shutdown separately.
Trait Implementations§
Source§impl Clone for ShardQueues
impl Clone for ShardQueues
Source§fn clone(&self) -> ShardQueues
fn clone(&self) -> ShardQueues
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 moreAuto Trait Implementations§
impl Freeze for ShardQueues
impl RefUnwindSafe for ShardQueues
impl Send for ShardQueues
impl Sync for ShardQueues
impl Unpin for ShardQueues
impl UnsafeUnpin for ShardQueues
impl UnwindSafe for ShardQueues
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
Casts
self to type T. The semantics of numeric casting with the as operator are followed, so <T as As>::as_::<U> can be used in the same way as T as U for numeric conversions. Read moreSource§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