Searched defs:WorkerGuard (Results 1 – 2 of 2) sorted by relevance
105 pub struct WorkerGuard { struct106 _guard: Option<JoinHandle<()>>,107 sender: Sender<Msg>,108 shutdown: Sender<()>,149 pub fn new<T: Write + Send + Sync + 'static>(writer: T) -> (NonBlocking, WorkerGuard) { in new() argument157 ) -> (NonBlocking, WorkerGuard) { in create() argument211 pub fn finish<T: Write + Send + Sync + 'static>(self, writer: T) -> (NonBlocking, WorkerGuard) { in finish() argument259 impl WorkerGuard { impl269 impl Drop for WorkerGuard { implementation
181 pub fn non_blocking<T: Write + Send + Sync + 'static>(writer: T) -> (NonBlocking, WorkerGuard) { in non_blocking() argument