Struct louis_sys::ThreadUnsafetyToken[][src]

pub struct ThreadUnsafetyToken(_);

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.

Methods

impl ThreadUnsafetyToken
[src]

Tries to get an exclusive ThreadUnsafetyToken, returning it if successful and None otherwise.

Trait Implementations

impl Drop for ThreadUnsafetyToken
[src]

Executes the destructor for this type. Read more

Auto Trait Implementations