pub struct StageId(/* private fields */);Expand description
Identifier for a pipeline stage. Carried by crate::Error variants
and by crate::StageFailure so a consumer can route or log by
stage name.
Stages assigned through the builder default to descriptive names
derived from the operation ("source", "map", "filter",
"batch", "sink", …). Override with
crate::PipelineBuilder::stage_id right before adding the stage.
§Example
use pipe_io::StageId;
let id = StageId::new("ingest");
assert_eq!(id.as_str(), "ingest");
assert_eq!(format!("{id}"), "ingest");Implementations§
Trait Implementations§
impl Copy for StageId
impl Eq for StageId
impl StructuralPartialEq for StageId
Auto Trait Implementations§
impl Freeze for StageId
impl RefUnwindSafe for StageId
impl Send for StageId
impl Sync for StageId
impl Unpin for StageId
impl UnsafeUnpin for StageId
impl UnwindSafe for StageId
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