pub struct CuImage<A>{
pub seq: u64,
pub format: CuImageBufferFormat,
pub buffer_handle: CuHandle<A>,
}Fields§
§seq: u64§format: CuImageBufferFormat§buffer_handle: CuHandle<A>Implementations§
Source§impl<A> CuImage<A>
impl<A> CuImage<A>
pub fn new(format: CuImageBufferFormat, buffer_handle: CuHandle<A>) -> Self
Source§impl<A> CuImage<A>
impl<A> CuImage<A>
Sourcepub fn payload_should_log(&self) -> bool
pub fn payload_should_log(&self) -> bool
Forward of CuHandle::payload_should_log. The unified-log encoder resolves
to this inherent method (via autoref-specialization) when the payload type is
CuImage<A>, so the configured HandleContent policy on the inner handle
drives whether the image bytes are written to the log.
Sourcepub fn apply_handle_content_policy(&self, mode: HandleContent)
pub fn apply_handle_content_policy(&self, mode: HandleContent)
Forward of CuHandle::apply_handle_content_policy. The runtime calls this
(via autoref-specialization) on every source-produced CuImage payload to
stamp it with the source’s configured NodeLogging.handle_content mode
before downstream consumers see it.
Sourcepub fn mark_touched(&self)
pub fn mark_touched(&self)
Consumer-side convenience: mark the underlying buffer as read. The unified-log
encoder records the full payload for this frame (when the source uses
HandleContent::TouchedOnly); without this call the payload is skipped.
pub fn with_plane_bytes<R>( &self, plane_index: usize, f: impl FnOnce(&[u8], CuImagePlaneLayout) -> R, ) -> CuResult<R>
pub fn with_plane_bytes_mut<R>( &mut self, plane_index: usize, f: impl FnOnce(&mut [u8], CuImagePlaneLayout) -> R, ) -> CuResult<R>
Trait Implementations§
Source§impl<'de, A> Deserialize<'de> for CuImage<A>
impl<'de, A> Deserialize<'de> for CuImage<A>
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<A> HandleContentAware for CuImage<A>
Auto Trait Implementations§
impl<A> Freeze for CuImage<A>
impl<A> RefUnwindSafe for CuImage<A>
impl<A> Send for CuImage<A>
impl<A> Sync for CuImage<A>
impl<A> Unpin for CuImage<A>
impl<A> UnsafeUnpin for CuImage<A>
impl<A> UnwindSafe for CuImage<A>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CuMsgPayload for T
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> GetTypeRegistration for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more