pub struct FfiCancelToken { /* private fields */ }Expand description
The shared state behind a cancel token ({prefix}_cancel_token in C, an
opaque type).
A *mut FfiCancelToken handed to C is an Arc turned into a raw
pointer, so the consumer’s reference and every CancelToken the
producer holds keep the state alive independently.
Trait Implementations§
Source§impl Debug for FfiCancelToken
impl Debug for FfiCancelToken
Source§impl Default for FfiCancelToken
impl Default for FfiCancelToken
Source§fn default() -> FfiCancelToken
fn default() -> FfiCancelToken
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for FfiCancelToken
impl RefUnwindSafe for FfiCancelToken
impl Send for FfiCancelToken
impl Sync for FfiCancelToken
impl Unpin for FfiCancelToken
impl UnsafeUnpin for FfiCancelToken
impl UnwindSafe for FfiCancelToken
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