#[repr(transparent)]pub struct trtStatus_t(pub i32);Expand description
TensorRT C API returns bool (0/1) or int32_t status codes depending on the
function. We provide a thin trtStatus_t newtype for the error-reporting
subset so it implements CudaStatus.
Tuple Fields§
§0: i32Implementations§
Source§impl trtStatus_t
impl trtStatus_t
Trait Implementations§
Source§impl Clone for trtStatus_t
impl Clone for trtStatus_t
Source§fn clone(&self) -> trtStatus_t
fn clone(&self) -> trtStatus_t
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 moreSource§impl CudaStatus for trtStatus_t
impl CudaStatus for trtStatus_t
Source§fn name(self) -> &'static str
fn name(self) -> &'static str
The stable symbol name of this status
(e.g.
"CUDA_SUCCESS", "CUBLAS_STATUS_NOT_INITIALIZED").Source§fn description(self) -> &'static str
fn description(self) -> &'static str
A human-readable description of the status. Read more
Source§fn is_success(self) -> bool
fn is_success(self) -> bool
true if this status represents successful completion.Source§impl Debug for trtStatus_t
impl Debug for trtStatus_t
Source§impl Hash for trtStatus_t
impl Hash for trtStatus_t
Source§impl Ord for trtStatus_t
impl Ord for trtStatus_t
Source§fn cmp(&self, other: &trtStatus_t) -> Ordering
fn cmp(&self, other: &trtStatus_t) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for trtStatus_t
impl PartialEq for trtStatus_t
Source§fn eq(&self, other: &trtStatus_t) -> bool
fn eq(&self, other: &trtStatus_t) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for trtStatus_t
impl PartialOrd for trtStatus_t
impl Copy for trtStatus_t
impl Eq for trtStatus_t
impl StructuralPartialEq for trtStatus_t
Auto Trait Implementations§
impl Freeze for trtStatus_t
impl RefUnwindSafe for trtStatus_t
impl Send for trtStatus_t
impl Sync for trtStatus_t
impl Unpin for trtStatus_t
impl UnsafeUnpin for trtStatus_t
impl UnwindSafe for trtStatus_t
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