pub struct BufferRecord<B> { /* private fields */ }Implementations§
Source§impl<B> BufferRecord<B>
impl<B> BufferRecord<B>
pub fn resource(&self) -> Result<&B, DeviceStateError>
Sourcepub fn resource_mut(&mut self) -> Result<&mut B, DeviceStateError>
pub fn resource_mut(&mut self) -> Result<&mut B, DeviceStateError>
Borrow the live provider buffer for an explicit mutating operation.
The command engine remains responsible for validating the operation and any in-flight access policy before invoking the provider.
pub const fn context_id(&self) -> ObjectId
pub const fn info(&self) -> BufferInfo
pub const fn in_flight(&self) -> u32
pub const fn release_state(&self) -> ReleaseState
Trait Implementations§
Auto Trait Implementations§
impl<B> Freeze for BufferRecord<B>where
B: Freeze,
impl<B> RefUnwindSafe for BufferRecord<B>where
B: RefUnwindSafe,
impl<B> Send for BufferRecord<B>where
B: Send,
impl<B> Sync for BufferRecord<B>where
B: Sync,
impl<B> Unpin for BufferRecord<B>where
B: Unpin,
impl<B> UnsafeUnpin for BufferRecord<B>where
B: UnsafeUnpin,
impl<B> UnwindSafe for BufferRecord<B>where
B: UnwindSafe,
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