pub enum EventMsg {
Create {
reply: Sender<Result<Event, GpuError>>,
},
Record {
event: Event,
stream: Arc<CudaStream>,
reply: Sender<Result<(), GpuError>>,
},
Wait {
event: Event,
stream: Arc<CudaStream>,
reply: Sender<Result<(), GpuError>>,
},
Query {
event: Event,
reply: Sender<Result<bool, GpuError>>,
},
ElapsedTime {
start: Event,
end: Event,
reply: Sender<Result<Duration, GpuError>>,
},
Synchronize {
event: Event,
reply: Sender<Result<(), GpuError>>,
},
GetIpcHandle {
event: Event,
reply: Sender<Result<IpcEventHandle, GpuError>>,
},
OpenIpcHandle {
handle: IpcEventHandle,
reply: Sender<Result<Event, GpuError>>,
},
}Variants§
Create
Create a new event. Reply with the typed Event.
Record
Record event against the current work in stream.
Wait
Wait on stream until event completes.
Query
Non-blocking query: true if completed.
ElapsedTime
Elapsed wall-clock time between two events.
Synchronize
Block the calling task until event completes.
GetIpcHandle
Export an IPC handle for event so a peer process can open it
via OpenIpcHandle.
OpenIpcHandle
Open an IPC handle minted by another process. The opened event is bound to the actor’s context.
Auto Trait Implementations§
impl Freeze for EventMsg
impl !RefUnwindSafe for EventMsg
impl Send for EventMsg
impl Sync for EventMsg
impl Unpin for EventMsg
impl UnsafeUnpin for EventMsg
impl !UnwindSafe for EventMsg
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