#[non_exhaustive]pub struct PipelineSection {
pub name: String,
pub threads: Option<usize>,
pub io_threads: usize,
pub pinning: PinningMode,
}Expand description
Identity and thread budget (pipeline:).
Construct with PipelineSection::new and set the optional fields. The
struct is #[non_exhaustive] so new knobs can be added without breaking
callers.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringPipeline name; the pipeline label on every metric.
threads: Option<usize>Pinned pipeline thread count. None derives from
available_parallelism minus the I/O reserve at startup.
io_threads: usizeWorker threads for the I/O runtime (sink workers, checkpointer, admin server).
pinning: PinningModeCore-pinning mode for pipeline threads.
Implementations§
Source§impl PipelineSection
impl PipelineSection
Sourcepub fn new(name: impl Into<String>) -> PipelineSection
pub fn new(name: impl Into<String>) -> PipelineSection
A section named name. Every other field starts at its YAML default.
use spate_core::config::PipelineSection;
let mut pipeline = PipelineSection::new("orders");
pipeline.io_threads = 4;
assert_eq!(pipeline.name, "orders");
assert_eq!(pipeline.threads, None);Trait Implementations§
Source§impl Debug for PipelineSection
impl Debug for PipelineSection
Source§impl<'de> Deserialize<'de> for PipelineSection
impl<'de> Deserialize<'de> for PipelineSection
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PipelineSection
impl PartialEq for PipelineSection
impl StructuralPartialEq for PipelineSection
Auto Trait Implementations§
impl Freeze for PipelineSection
impl RefUnwindSafe for PipelineSection
impl Send for PipelineSection
impl Sync for PipelineSection
impl Unpin for PipelineSection
impl UnsafeUnpin for PipelineSection
impl UnwindSafe for PipelineSection
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