pub struct UringReaderHandle<R> { /* private fields */ }Expand description
Handle for the accept loop to register connections with the io_uring reader.
Implementations§
Source§impl<R> UringReaderHandle<R>
impl<R> UringReaderHandle<R>
Sourcepub fn register(&mut self, registration: ReaderRegistration<R>)
pub fn register(&mut self, registration: ReaderRegistration<R>)
Register a new connection with the reader thread.
If the reader thread’s channel is dead (thread panicked), logs an error and signals shutdown so the server can restart cleanly.
Auto Trait Implementations§
impl<R> Freeze for UringReaderHandle<R>
impl<R> !RefUnwindSafe for UringReaderHandle<R>
impl<R> Send for UringReaderHandle<R>where
R: Send,
impl<R> Sync for UringReaderHandle<R>where
R: Send,
impl<R> Unpin for UringReaderHandle<R>
impl<R> UnsafeUnpin for UringReaderHandle<R>
impl<R> !UnwindSafe for UringReaderHandle<R>
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