pub struct SayPresenter { /* private fields */ }Expand description
Renders the say lifecycle as something a person wants to read.
The NDJSON stream is a machine contract — stable schema, one event per line, audio_chunk per
packet — and it is exactly the wrong thing to put in front of somebody who typed a sentence and
wants a file. Rather than weaken that contract, this consumes the same events and prints a
different view of them; the stream is unchanged for every non-terminal consumer.
Implementations§
Source§impl SayPresenter
impl SayPresenter
Sourcepub fn writing_to(destination: Option<String>) -> Self
pub fn writing_to(destination: Option<String>) -> Self
Names the file the audio lands in, so the summary can say where it went.
The event stream never carries this — a machine consumer passed the path in and knows it — but a person reading four lines of output should not have to look back at their own command to find out what was written.
Trait Implementations§
Source§impl Default for SayPresenter
impl Default for SayPresenter
Source§fn default() -> SayPresenter
fn default() -> SayPresenter
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SayPresenter
impl RefUnwindSafe for SayPresenter
impl Send for SayPresenter
impl Sync for SayPresenter
impl Unpin for SayPresenter
impl UnsafeUnpin for SayPresenter
impl UnwindSafe for SayPresenter
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).