struct Writer {
jobs: Sender<Box<dyn FnOnce(&Connection) + Send>>,
}Expand description
The thread that owns the read-write connection. Jobs run one at a time, in the order they were sent; the thread exits when the last service handle (and so the last sender) is dropped.
Fields§
§jobs: Sender<Box<dyn FnOnce(&Connection) + Send>>Implementations§
Auto Trait Implementations§
impl Freeze for Writer
impl RefUnwindSafe for Writer
impl Send for Writer
impl Sync for Writer
impl Unpin for Writer
impl UnsafeUnpin for Writer
impl UnwindSafe for Writer
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