pub struct HostNodeParams { /* private fields */ }Implementations§
Source§impl HostNodeParams
impl HostNodeParams
Sourcepub const unsafe fn new(func: HostFunction, user_data: *mut ()) -> Self
pub const unsafe fn new(func: HostFunction, user_data: *mut ()) -> Self
Creates host callback node parameters from a raw user-data pointer.
§Safety
user_data must remain valid for func according to CUDA host-node callback rules until no graph execution can invoke the callback.
pub const fn function(self) -> HostFunction
pub const fn user_data(self) -> *mut ()
Trait Implementations§
Source§impl Clone for HostNodeParams
impl Clone for HostNodeParams
Source§fn clone(&self) -> HostNodeParams
fn clone(&self) -> HostNodeParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HostNodeParams
Source§impl Debug for HostNodeParams
impl Debug for HostNodeParams
Source§impl From<&HostNodeParams> for CUDA_HOST_NODE_PARAMS
impl From<&HostNodeParams> for CUDA_HOST_NODE_PARAMS
Source§fn from(value: &HostNodeParams) -> Self
fn from(value: &HostNodeParams) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Send for HostNodeParams
impl !Sync for HostNodeParams
impl Freeze for HostNodeParams
impl RefUnwindSafe for HostNodeParams
impl Unpin for HostNodeParams
impl UnsafeUnpin for HostNodeParams
impl UnwindSafe for HostNodeParams
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