pub struct Driver<H: Handler<DriverReplySink>> { /* private fields */ }Expand description
Per-connection driver. Handles in-flight request tracking, dispatches incoming calls to a Handler, and manages channel state/flow control.
Implementations§
Source§impl<H: Handler<DriverReplySink>> Driver<H>
impl<H: Handler<DriverReplySink>> Driver<H>
pub fn new(handle: ConnectionHandle, handler: H) -> Self
pub fn caller(&self) -> DriverCaller
Auto Trait Implementations§
impl<H> !Freeze for Driver<H>
impl<H> !RefUnwindSafe for Driver<H>
impl<H> Send for Driver<H>
impl<H> Sync for Driver<H>
impl<H> Unpin for Driver<H>
impl<H> UnsafeUnpin for Driver<H>
impl<H> !UnwindSafe for Driver<H>
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