pub struct DeviceHandle<S>where
S: DeviceService,{ /* private fields */ }Expand description
TODO: Docs
Implementations§
Source§impl<S> DeviceHandle<S>where
S: DeviceService,
impl<S> DeviceHandle<S>where
S: DeviceService,
pub const fn is_blocking() -> bool
pub fn insert( device_id: DeviceId, service: S, ) -> Result<DeviceHandle<S>, ServiceCreationError>
pub fn new(device_id: DeviceId) -> DeviceHandle<S>
pub fn utilities(&self) -> Arc<dyn Any + Sync + Send>
pub fn submit_blocking<R, T>(&self, task: T) -> Result<R, CallError>
pub fn submit_blocking_scoped<'a, R, T>(&self, task: T) -> R
pub fn submit<T>(&self, task: T)
pub fn flush_queue(&self)
pub fn exclusive<R, T>(&self, task: T) -> Result<R, CallError>
pub fn exclusive_scoped<R, T>(&self, task: T) -> Result<R, CallError>
Trait Implementations§
Source§impl<S> Clone for DeviceHandle<S>where
S: DeviceService,
impl<S> Clone for DeviceHandle<S>where
S: DeviceService,
Source§fn clone(&self) -> DeviceHandle<S>
fn clone(&self) -> DeviceHandle<S>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<S> Freeze for DeviceHandle<S>
impl<S> !RefUnwindSafe for DeviceHandle<S>
impl<S> Send for DeviceHandle<S>
impl<S> Sync for DeviceHandle<S>
impl<S> Unpin for DeviceHandle<S>
impl<S> UnsafeUnpin for DeviceHandle<S>
impl<S> !UnwindSafe for DeviceHandle<S>
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