pub struct ThreadUnsafetyToken(/* private fields */);Expand description
A token that can only ever exist once in the context of an entire process. This is needed since liblouis is inherently thread-unsafe. Safe abstractions over this crate have to guard all liblouis function calls, allowing them only if this token is held. Note that the token itself does not enable any safe calling of liblouis functions - higher-level bindings need to provide this.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ThreadUnsafetyToken
impl RefUnwindSafe for ThreadUnsafetyToken
impl Send for ThreadUnsafetyToken
impl Sync for ThreadUnsafetyToken
impl Unpin for ThreadUnsafetyToken
impl UnwindSafe for ThreadUnsafetyToken
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