Struct wgpu::core::resource::BufferMapCallback
source · pub struct BufferMapCallback { /* private fields */ }
Implementations§
source§impl BufferMapCallback
impl BufferMapCallback
pub fn from_rust( callback: Box<dyn FnOnce(Result<(), BufferAccessError>) + Send> ) -> BufferMapCallback
sourcepub unsafe fn from_c(inner: BufferMapCallbackC) -> BufferMapCallback
pub unsafe fn from_c(inner: BufferMapCallbackC) -> BufferMapCallback
Safety
-
The callback pointer must be valid to call with the provided user_data pointer.
-
Both pointers must point to valid memory until the callback is invoked, which may happen at an unspecified time.
Trait Implementations§
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§
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