Struct wgpu_core::resource::BufferMapCallback
source · [−]pub struct BufferMapCallback { /* private fields */ }
Implementations
sourceimpl BufferMapCallback
impl BufferMapCallback
pub fn from_rust(
callback: Box<dyn FnOnce(BufferMapAsyncStatus) + Send + 'static>
) -> Self
sourcepub unsafe fn from_c(inner: BufferMapCallbackC) -> Self
pub unsafe fn from_c(inner: BufferMapCallbackC) -> 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 !RefUnwindSafe for BufferMapCallback
impl Send for BufferMapCallback
impl !Sync for BufferMapCallback
impl Unpin for BufferMapCallback
impl !UnwindSafe for BufferMapCallback
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more