Struct cognitive_services_speech_sdk_rs::ffi::SmartHandle
source · [−]Expand description
Wrapper struct around underlying native handles Apart from handle it wraps release function that is automatically called when SmartHandle is dropped (see Drop trait implementation).
Implementations
Trait Implementations
sourceimpl<T: Copy + Debug> Display for SmartHandle<T>
impl<T: Copy + Debug> Display for SmartHandle<T>
sourceimpl<T: Copy + Debug> Drop for SmartHandle<T>
impl<T: Copy + Debug> Drop for SmartHandle<T>
Calls release function when handle is being dropped This ensures underlying native resources are released properly.
impl<T: Copy + Debug> Send for SmartHandle<T>
Send implementation so that we can send SmartHandles accross threads.
Auto Trait Implementations
impl<T> RefUnwindSafe for SmartHandle<T> where
T: RefUnwindSafe,
impl<T> Sync for SmartHandle<T> where
T: Sync,
impl<T> Unpin for SmartHandle<T> where
T: Unpin,
impl<T> UnwindSafe for SmartHandle<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more