pub struct Driver;
Expand description
The type corresponding to the Driver protocol.
This protocol is used by the Driver Framework’s Driver Host to communicate various messages and
lifecycle hooks to the driver. The connection for this protocol is established through the
|DriverRegistration| defined in the driver_symbols
library.
Once the driver has closed its server end, the Driver Framework will initiate the shutdown of all dispatchers belonging to this driver.
Trait Implementations§
Source§impl<___T, ___H> ClientProtocol<___T, ___H> for Driverwhere
___T: Transport,
___H: DriverClientHandler<___T>,
<Start as Method>::Response: Decode<<___T as Transport>::RecvBuffer>,
impl<___T, ___H> ClientProtocol<___T, ___H> for Driverwhere
___T: Transport,
___H: DriverClientHandler<___T>,
<Start as Method>::Response: Decode<<___T as Transport>::RecvBuffer>,
Source§impl<___T, ___H> ServerProtocol<___T, ___H> for Driverwhere
___T: Transport,
___H: DriverServerHandler<___T>,
WireDriverStartRequest: Decode<<___T as Transport>::RecvBuffer>,
impl<___T, ___H> ServerProtocol<___T, ___H> for Driverwhere
___T: Transport,
___H: DriverServerHandler<___T>,
WireDriverStartRequest: Decode<<___T as Transport>::RecvBuffer>,
Source§fn on_one_way(
handler: &mut ___H,
sender: &ServerSender<___T, Self>,
ordinal: u64,
buffer: ___T::RecvBuffer,
)
fn on_one_way( handler: &mut ___H, sender: &ServerSender<___T, Self>, ordinal: u64, buffer: ___T::RecvBuffer, )
Handles a received server one-way message with the given handler.
Source§fn on_two_way(
handler: &mut ___H,
sender: &ServerSender<___T, Self>,
ordinal: u64,
buffer: ___T::RecvBuffer,
responder: Responder,
)
fn on_two_way( handler: &mut ___H, sender: &ServerSender<___T, Self>, ordinal: u64, buffer: ___T::RecvBuffer, responder: Responder, )
Handles a received server two-way message with the given handler.
Source§impl TakeFrom<Driver> for DriverMarker
impl TakeFrom<Driver> for DriverMarker
Auto Trait Implementations§
impl Freeze for Driver
impl RefUnwindSafe for Driver
impl Send for Driver
impl Sync for Driver
impl Unpin for Driver
impl UnwindSafe for Driver
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