pub struct RetryWriter<W: Writer> { /* private fields */ }Expand description
Writer which decorates another writer in order to make it available to multiple threads. This writer is non-blocking but will try multiple times before it give up.
Implementations§
Source§impl<W: Writer> RetryWriter<W>
impl<W: Writer> RetryWriter<W>
pub fn new(mx_writer: Arc<Mutex<W>>) -> RetryWriter<W>
Trait Implementations§
Source§impl<W: Writer> Writer for RetryWriter<W>
impl<W: Writer> Writer for RetryWriter<W>
Auto Trait Implementations§
impl<W> !RefUnwindSafe for RetryWriter<W>
impl<W> !UnwindSafe for RetryWriter<W>
impl<W> Freeze for RetryWriter<W>
impl<W> Send for RetryWriter<W>
impl<W> Sync for RetryWriter<W>
impl<W> Unpin for RetryWriter<W>
impl<W> UnsafeUnpin for RetryWriter<W>
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