pub struct InterfaceAdapter { /* private fields */ }Expand description
Implements callback_interface::Interface using C callbacks.
Trait Implementations§
Source§impl Interface for InterfaceAdapter
impl Interface for InterfaceAdapter
type Orchestrator = Orchestrator
Source§fn get_info(&self) -> Cow<'_, DeviceInfo>
fn get_info(&self) -> Cow<'_, DeviceInfo>
Called to get block/partition information.
Source§fn spawn_session(&self, session: Arc<Session<Self>>)
fn spawn_session(&self, session: Arc<Session<Self>>)
Start running a new session. The interface must ensure that
Session::run is called
on a different thread.Source§fn on_requests(&self, requests: &[Request])
fn on_requests(&self, requests: &[Request])
Starts a batch of requests. The implementation may block if there are too many in-flight
requests, providing pushback. The interface is responsible for eventually calling
SessionManager::complete_request for each request.Auto Trait Implementations§
impl Freeze for InterfaceAdapter
impl RefUnwindSafe for InterfaceAdapter
impl Send for InterfaceAdapter
impl Sync for InterfaceAdapter
impl Unpin for InterfaceAdapter
impl UnsafeUnpin for InterfaceAdapter
impl UnwindSafe for InterfaceAdapter
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