pub struct StepLogSender { /* private fields */ }Expand description
Step-scoped log sender with pre-filled metadata.
Wraps a LogSender with the run ID, step ID, and step name so that
executors can emit lines without repeating metadata on every call.
§Examples
use ironflow_engine::log_sender::{self, StepLogSender};
use ironflow_engine::notify::LogStream;
use uuid::Uuid;
let (sender, _rx) = log_sender::channel();
let step_sender = StepLogSender::new(
sender,
Uuid::now_v7(),
Uuid::now_v7(),
"deploy".to_string(),
);
step_sender.emit(LogStream::Stderr, "warning: deprecated API");Implementations§
Trait Implementations§
Source§impl Clone for StepLogSender
impl Clone for StepLogSender
Source§fn clone(&self) -> StepLogSender
fn clone(&self) -> StepLogSender
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for StepLogSender
impl RefUnwindSafe for StepLogSender
impl Send for StepLogSender
impl Sync for StepLogSender
impl Unpin for StepLogSender
impl UnsafeUnpin for StepLogSender
impl UnwindSafe for StepLogSender
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