Skip to main content

SubmissionResources

Struct SubmissionResources 

Source
pub struct SubmissionResources<'a, B, P, Q> { /* private fields */ }
Expand description

Validated provider resources for one event-producing submission.

Implementations§

Source§

impl<'a, B, P, Q> SubmissionResources<'a, B, P, Q>

Source

pub const fn context_id(&self) -> ObjectId

Source

pub const fn queue(&self) -> &'a Q

Source

pub const fn program(&self) -> &'a P

Source

pub fn buffer_ids(&self) -> &[ObjectId]

Retained buffer IDs sorted by raw object ID, including duplicate bindings.

Source

pub fn buffer_by_id(&self, id: ObjectId) -> Result<&'a B, DeviceStateError>

Trait Implementations§

Source§

impl<B, P, Q> Debug for SubmissionResources<'_, B, P, Q>

Source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a, B, P, Q> Freeze for SubmissionResources<'a, B, P, Q>

§

impl<'a, B, P, Q> RefUnwindSafe for SubmissionResources<'a, B, P, Q>

§

impl<'a, B, P, Q> Send for SubmissionResources<'a, B, P, Q>
where Q: Sync, P: Sync, B: Sync,

§

impl<'a, B, P, Q> Sync for SubmissionResources<'a, B, P, Q>
where Q: Sync, P: Sync, B: Sync,

§

impl<'a, B, P, Q> Unpin for SubmissionResources<'a, B, P, Q>

§

impl<'a, B, P, Q> UnsafeUnpin for SubmissionResources<'a, B, P, Q>

§

impl<'a, B, P, Q> UnwindSafe for SubmissionResources<'a, B, P, Q>

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> 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 = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.