Struct wgpu_core::device::queue::SubmittedWorkDoneClosure
source · pub struct SubmittedWorkDoneClosure { /* private fields */ }
Implementations§
source§impl SubmittedWorkDoneClosure
impl SubmittedWorkDoneClosure
pub fn from_rust(callback: Box<dyn FnOnce() + Send + 'static>) -> Self
sourcepub unsafe fn from_c(inner: SubmittedWorkDoneClosureC) -> Self
pub unsafe fn from_c(inner: SubmittedWorkDoneClosureC) -> Self
§Safety
-
The callback pointer must be valid to call with the provided
user_data
pointer. -
Both pointers must point to
'static
data, as the callback may happen at an unspecified time.
Auto Trait Implementations§
impl Freeze for SubmittedWorkDoneClosure
impl !RefUnwindSafe for SubmittedWorkDoneClosure
impl Send for SubmittedWorkDoneClosure
impl !Sync for SubmittedWorkDoneClosure
impl Unpin for SubmittedWorkDoneClosure
impl !UnwindSafe for SubmittedWorkDoneClosure
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