pub enum StreamAction {
Forward(String),
Filter,
Replace(String),
}Expand description
Action to take for a stream chunk.
Variants§
Forward(String)
Forward the token to the stream.
Filter
Filter (drop) this token.
Replace(String)
Replace the token with different content.
Trait Implementations§
Source§impl Clone for StreamAction
impl Clone for StreamAction
Source§fn clone(&self) -> StreamAction
fn clone(&self) -> StreamAction
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 moreAuto Trait Implementations§
impl Freeze for StreamAction
impl RefUnwindSafe for StreamAction
impl Send for StreamAction
impl Sync for StreamAction
impl Unpin for StreamAction
impl UnsafeUnpin for StreamAction
impl UnwindSafe for StreamAction
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