Struct shardio::ShardSender [−][src]
pub struct ShardSender<T, S = DefaultSort> where
T: Send + Serialize,
S: SortKey<T>,
<S as SortKey<T>>::Key: Ord + Clone + Serialize, { /* fields omitted */ }
Expand description
A handle that is used to send data to a ShardWriter
. Each thread that is producing data
needs it’s own ShardSender. A ShardSender
can be obtained with the get_sender
method of
ShardWriter
. ShardSender implement clone.
Implementations
Signal that you’ve finished sending items to this ShardSender
. finished
will called
if the ShardSender
is dropped. You must call finished()
or drop the ShardSender
prior to calling ShardWriter::finish
or dropping the ShardWriter, or you will get a panic.
Trait Implementations
Auto Trait Implementations
impl<T, S> RefUnwindSafe for ShardSender<T, S> where
T: RefUnwindSafe,
impl<T, S> Send for ShardSender<T, S> where
<S as SortKey<T>>::Key: Send,
impl<T, S> Unpin for ShardSender<T, S> where
T: Unpin,
impl<T, S> UnwindSafe for ShardSender<T, S> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more