pub struct CircuitConfig {
pub layout: Layout,
pub storage: Option<StorageConfig>,
pub min_storage_bytes: usize,
pub init_checkpoint: Uuid,
}Expand description
A config for instantiating a multithreaded/multihost runtime to execute circuits.
As opposed to RuntimeConfig, this struct stores state about which hosts
run the circuit and where they store data, e.g., state typically not
tunable/exposed by the user.
Fields§
§layout: LayoutHow the circuit is laid out across one or multiple machines.
storage: Option<StorageConfig>Storage configuration (if storage is enabled).
min_storage_bytes: usizeEstimated minimum number of bytes in a data batch to spill it to
storage. If this is 0, then all batches will be stored on disk; if it is
usize::MAX, then all batches will be kept in memory; and intermediate
values specify a threshold.
init_checkpoint: UuidThe initial checkpoint to start the circuit from.
In case of a new circuit, this should be Uuid::nil().
Setting this to an existing checkpoint will start the circuit from that
and requires that the checkpoint exists in the storage directory.
Implementations§
Source§impl CircuitConfig
impl CircuitConfig
pub fn with_workers(n: usize) -> Self
Trait Implementations§
Source§impl Clone for CircuitConfig
impl Clone for CircuitConfig
Source§fn clone(&self) -> CircuitConfig
fn clone(&self) -> CircuitConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for CircuitConfig
impl Default for CircuitConfig
Source§impl From<&CircuitConfig> for CircuitConfig
impl From<&CircuitConfig> for CircuitConfig
Source§fn from(value: &CircuitConfig) -> Self
fn from(value: &CircuitConfig) -> Self
Source§impl From<Layout> for CircuitConfig
impl From<Layout> for CircuitConfig
Auto Trait Implementations§
impl Freeze for CircuitConfig
impl RefUnwindSafe for CircuitConfig
impl Send for CircuitConfig
impl Sync for CircuitConfig
impl Unpin for CircuitConfig
impl UnwindSafe for CircuitConfig
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more