pub struct ThreadsPartitioning { /* private fields */ }
Implementations§
source§impl ThreadsPartitioning
impl ThreadsPartitioning
pub fn set_migration_interval(&mut self, migration_interval: Duration)
pub fn set_progress_interval(&mut self, progress_interval: Duration)
pub fn set_panic_interval(&mut self, panic_interval: Duration)
Trait Implementations§
source§impl Debug for ThreadsPartitioning
impl Debug for ThreadsPartitioning
source§impl<'de> Deserialize<'de> for ThreadsPartitioning
impl<'de> Deserialize<'de> for ThreadsPartitioning
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
source§impl Partitioning for ThreadsPartitioning
impl Partitioning for ThreadsPartitioning
source§fn with_local_partition<R: Reporter, P: ReporterContext<Reporter = R>, A: Data, Q: Data + Serialize + DeserializeOwned>(
self,
reporter_context: P,
event_log: Self::Auxiliary,
args: A,
inner: for<'p> fn(_: &'p mut Self::LocalPartition<'p, R>, _: A) -> Q,
fold: fn(_: Q, _: Q) -> Q
) -> Result<(Q, Self::FinalisableReporter<R>)>
fn with_local_partition<R: Reporter, P: ReporterContext<Reporter = R>, A: Data, Q: Data + Serialize + DeserializeOwned>( self, reporter_context: P, event_log: Self::Auxiliary, args: A, inner: for<'p> fn(_: &'p mut Self::LocalPartition<'p, R>, _: A) -> Q, fold: fn(_: Q, _: Q) -> Q ) -> Result<(Q, Self::FinalisableReporter<R>)>
§Errors
Returns MissingEventLog
if the local partition is non-monolithic and
the event_log
is None
.
Returns InvalidEventSubLog
if creating a sub-event_log
failed.
type Auxiliary = Option<EventLogConfig>
type FinalisableReporter<R: Reporter> = FinalisableThreadsReporter<R>
type LocalPartition<'p, R: Reporter> = ThreadsLocalPartition<R>
fn get_size(&self) -> PartitionSize
Auto Trait Implementations§
impl Freeze for ThreadsPartitioning
impl RefUnwindSafe for ThreadsPartitioning
impl Send for ThreadsPartitioning
impl Sync for ThreadsPartitioning
impl Unpin for ThreadsPartitioning
impl UnwindSafe for ThreadsPartitioning
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
§impl<T> ExtractDiscriminant for T
impl<T> ExtractDiscriminant for T
§type Discriminant = <T as ExtractDiscriminantSpec<<T as DiscriminantKind>::Discriminant>>::Ty
type Discriminant = <T as ExtractDiscriminantSpec<<T as DiscriminantKind>::Discriminant>>::Ty
The type of the discriminant, which must satisfy the trait bounds
required by
core::mem::Discriminant
. Read more