pub(crate) struct InstanceDevices(Arc<Mutex<WeakVec<Device>>>);Tuple Fields§
§0: Arc<Mutex<WeakVec<Device>>>Implementations§
Source§impl InstanceDevices
impl InstanceDevices
pub(crate) fn new() -> Self
pub(crate) fn push(&self, device: &Arc<Device>)
Sourcefn poll_all_devices(
&self,
force_wait: bool,
closure_list: &mut UserClosures,
) -> Result<bool, WaitIdleError>
fn poll_all_devices( &self, force_wait: bool, closure_list: &mut UserClosures, ) -> Result<bool, WaitIdleError>
Poll all devices stored in this instance.
If force_wait is true, block until all buffer mappings are done.
Return all_queue_empty indicating whether there are more queue
submissions still in flight.
Trait Implementations§
Source§impl Clone for InstanceDevices
impl Clone for InstanceDevices
Source§fn clone(&self) -> InstanceDevices
fn clone(&self) -> InstanceDevices
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 moreSource§impl Debug for InstanceDevices
impl Debug for InstanceDevices
Auto Trait Implementations§
impl Freeze for InstanceDevices
impl !RefUnwindSafe for InstanceDevices
impl Send for InstanceDevices
impl Sync for InstanceDevices
impl Unpin for InstanceDevices
impl !UnwindSafe for InstanceDevices
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more