pub struct DeviceHandle<S: DeviceService> { /* private fields */ }Expand description
TODO: Docs
Implementations§
Source§impl<S: DeviceService> DeviceHandle<S>
impl<S: DeviceService> DeviceHandle<S>
pub const fn is_blocking() -> bool
pub fn insert( device_id: DeviceId, service: S, ) -> Result<Self, ServiceCreationError>
pub fn new(device_id: DeviceId) -> Self
pub fn utilities(&self) -> ServerUtilitiesHandle
pub fn submit_blocking<R: Send + 'static, T: FnOnce(&mut S) -> R + Send + 'static>( &self, task: T, ) -> Result<R, CallError>
pub fn submit_blocking_scoped<'a, R: Send + 'a, T: FnOnce(&mut S) -> R + Send + 'a>( &self, task: T, ) -> R
pub fn submit<T: FnOnce(&mut S) + Send + 'static>(&self, task: T)
pub fn flush_queue(&self)
pub fn exclusive<R: Send + 'static, T: FnOnce() -> R + Send + 'static>( &self, task: T, ) -> Result<R, CallError>
pub fn exclusive_scoped<R: Send, T: FnOnce() -> R + Send>( &self, task: T, ) -> Result<R, CallError>
Trait Implementations§
Source§impl<S: DeviceService> Clone for DeviceHandle<S>
impl<S: DeviceService> Clone for DeviceHandle<S>
Auto 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