Struct sentry_rs::SingleWorker
[−]
[src]
pub struct SingleWorker<T: 'static + Send, P: Clone + Send> { /* fields omitted */ }
A Single Worker thread that sends items to Sentry.
Methods
impl<T: 'static + Debug + Send, P: 'static + Clone + Send> SingleWorker<T, P>
[src]
fn new(parameters: P,
f: Box<WorkerClosure<T, P, Output=()>>)
-> SingleWorker<T, P>
f: Box<WorkerClosure<T, P, Output=()>>)
-> SingleWorker<T, P>
Creates a new Worker Thread. This realaly should only be used internally, and you probably shouldn't just go around creating worker threads.
fn work_with(&self, msg: T) -> Result<(), SendError<T>>
Processes an Event that needs to go to Sentry.