#[repr(C)]pub struct HurraySyncConsumerStreamPayload {
pub consumer_stream: *mut c_void,
pub consumer_stream_device_tag: u8,
}Expand description
Payload for the ConsumerStream sync mode handoff.
The consumer supplies this struct when calling
hurray_buffer_handoff_consumer_stream to declare the stream on which
they intend to use the buffer.
Fields§
§consumer_stream: *mut c_voidNon-null consumer stream handle (e.g., cudaStream_t).
consumer_stream_device_tag: u8Wire byte of the device that owns consumer_stream.
Trait Implementations§
Auto Trait Implementations§
impl !Sync for HurraySyncConsumerStreamPayload
impl Freeze for HurraySyncConsumerStreamPayload
impl RefUnwindSafe for HurraySyncConsumerStreamPayload
impl Unpin for HurraySyncConsumerStreamPayload
impl UnsafeUnpin for HurraySyncConsumerStreamPayload
impl UnwindSafe for HurraySyncConsumerStreamPayload
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