Skip to main content

UserClosures

Struct UserClosures 

Source
pub struct UserClosures {
    pub mappings: Vec<BufferMapPendingClosure>,
    pub blas_compact_ready: Vec<BlasCompactReadyPendingClosure>,
    pub submissions: SmallVec<[SubmittedWorkDoneClosure; 1]>,
    pub device_lost_invocations: SmallVec<[DeviceLostInvocation; 1]>,
}

Fields§

§mappings: Vec<BufferMapPendingClosure>§blas_compact_ready: Vec<BlasCompactReadyPendingClosure>§submissions: SmallVec<[SubmittedWorkDoneClosure; 1]>§device_lost_invocations: SmallVec<[DeviceLostInvocation; 1]>

Trait Implementations§

Source§

impl Default for UserClosures

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl !RefUnwindSafe for UserClosures

§

impl !Sync for UserClosures

§

impl !UnwindSafe for UserClosures

§

impl Forget for UserClosures

§

impl Freeze for UserClosures

§

impl Move for UserClosures

§

impl Send for UserClosures
where RawVecInner: Send, BoxRaw<dyn FnOnce(Result<MapMode, BufferAccessError>) + Send>: Send, BoxRaw<DeviceMismatch>: Send, &'static str: Send, String: Send, InternalBitFlags: Send, InternalBitFlags: Send, InternalBitFlags: Send, BoxRaw<dyn FnOnce(Result<(), BlasPrepareCompactError>) + Send>: Send, SmallVec<[Box<dyn FnOnce() + Send>; 1]>: Send, SmallVec<[DeviceLostInvocation; 1]>: Send,

§

impl Unpin for UserClosures
where *const u8 is !null: Unpin, Box<dyn FnOnce(Result<MapMode, BufferAccessError>) + Send>: Unpin, Box<DeviceMismatch>: Unpin, &'static str: Unpin, String: Unpin, InternalBitFlags: Unpin, InternalBitFlags: Unpin, InternalBitFlags: Unpin, Box<dyn FnOnce(Result<(), BlasPrepareCompactError>) + Send>: Unpin, Box<dyn FnOnce() + Send>: Unpin, *const Box<dyn FnOnce() + Send> is !null: Unpin, Box<dyn FnOnce(DeviceLostReason, String) + Send>: Unpin, *const DeviceLostInvocation is !null: Unpin, DeviceLostInvocation: Unpin,

§

impl UnsafeUnpin for UserClosures

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> Downcast<T> for T

Source§

fn downcast(&self) -> &T

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Upcast<T> for T

Source§

fn upcast(&self) -> Option<&T>

Source§

impl<T> WasmNotSend for T
where T: Send,