pub trait HandleConstraints:
TryStaticCast
+ Debug
+ Clone
+ From<RawHandle>
+ PartialEq
+ PartialEq<RawHandle> {
// Required methods
fn new(handle: RawHandle) -> Self;
fn to_be_bytes(&self) -> [u8; 4];
fn get_raw_handle(&self) -> RawHandle;
// Provided methods
fn cast_or_signal_error<E: ErrorApi, U: TryStaticCast>(self) -> U { ... }
fn get_raw_handle_unchecked(&self) -> RawHandle { ... }
}
Required Methods§
fn new(handle: RawHandle) -> Self
fn to_be_bytes(&self) -> [u8; 4]
fn get_raw_handle(&self) -> RawHandle
Provided Methods§
fn cast_or_signal_error<E: ErrorApi, U: TryStaticCast>(self) -> U
fn get_raw_handle_unchecked(&self) -> RawHandle
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.