pub struct SmoothStreamConfig {
pub delay: Option<Duration>,
pub chunking: Chunking,
}Expand description
Configuration of smooth_stream.
Fields§
§delay: Option<Duration>Pause after each emitted chunk (default 10 ms; None for no pause).
chunking: ChunkingChunking strategy (default Chunking::Word).
Implementations§
Trait Implementations§
Source§impl Clone for SmoothStreamConfig
impl Clone for SmoothStreamConfig
Source§fn clone(&self) -> SmoothStreamConfig
fn clone(&self) -> SmoothStreamConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SmoothStreamConfig
impl Debug for SmoothStreamConfig
Auto Trait Implementations§
impl !RefUnwindSafe for SmoothStreamConfig
impl !UnwindSafe for SmoothStreamConfig
impl Freeze for SmoothStreamConfig
impl Send for SmoothStreamConfig
impl Sync for SmoothStreamConfig
impl Unpin for SmoothStreamConfig
impl UnsafeUnpin for SmoothStreamConfig
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