pub struct All { /* private fields */ }
Expand description
Trigger handlers on every element
Implementations§
Source§impl All
impl All
Sourcepub fn set_convert(&mut self, convert: bool)
pub fn set_convert(&mut self, convert: bool)
Sets whether handlers should be actually used to converting data
Sourcepub fn add_handler(&mut self, handler: Arc<Mutex<dyn Handler>>)
pub fn add_handler(&mut self, handler: Arc<Mutex<dyn Handler>>)
Adds a handler to All
§Arguments
handler
- handler to be triggers when path matches
§Example
use streamson_lib::{strategy, matcher, handler};
use std::sync::{Arc, Mutex};
let mut trigger = strategy::All::new();
let handler = handler::Analyser::new();
trigger.add_handler(
Arc::new(Mutex::new(handler))
);
Trait Implementations§
Auto Trait Implementations§
impl Freeze for All
impl RefUnwindSafe for All
impl Send for All
impl Sync for All
impl Unpin for All
impl UnwindSafe for All
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