pub struct DriverEntryPoint {
pub fn_ptr: *mut c_void,
pub status: i32,
}Expand description
Typed outcome of driver_entry_point. status mirrors the
cudaDriverEntryPointQueryResult enum reported by the runtime:
0 = Success, 1 = SymbolNotFound, 2 = VersionNotSufficient.
Fields§
§fn_ptr: *mut c_voidResolved Driver-API function pointer, or null on lookup failure.
status: i32Raw cudaDriverEntryPointQueryResult code (0 = success).
Implementations§
Source§impl DriverEntryPoint
impl DriverEntryPoint
Sourcepub fn is_success(&self) -> bool
pub fn is_success(&self) -> bool
true iff the runtime resolved the symbol and the function
pointer is non-null.
Trait Implementations§
Source§impl Clone for DriverEntryPoint
impl Clone for DriverEntryPoint
Source§fn clone(&self) -> DriverEntryPoint
fn clone(&self) -> DriverEntryPoint
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 DriverEntryPoint
Auto Trait Implementations§
impl !Send for DriverEntryPoint
impl !Sync for DriverEntryPoint
impl Freeze for DriverEntryPoint
impl RefUnwindSafe for DriverEntryPoint
impl Unpin for DriverEntryPoint
impl UnsafeUnpin for DriverEntryPoint
impl UnwindSafe for DriverEntryPoint
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