Struct libpostal_sys::GLOBAL_LOCK
source · [−]pub struct GLOBAL_LOCK { /* private fields */ }Expand description
You must take this lock before doing anything with this library.
libpostal is not thread safe.
Trait Implementations
sourceimpl Deref for GLOBAL_LOCK
impl Deref for GLOBAL_LOCK
type Target = Arc<Mutex<InitializationState>>
type Target = Arc<Mutex<InitializationState>>
The resulting type after dereferencing.
sourcefn deref(&self) -> &Arc<Mutex<InitializationState>>
fn deref(&self) -> &Arc<Mutex<InitializationState>>
Dereferences the value.
impl LazyStatic for GLOBAL_LOCK
Auto Trait Implementations
impl RefUnwindSafe for GLOBAL_LOCK
impl Send for GLOBAL_LOCK
impl Sync for GLOBAL_LOCK
impl Unpin for GLOBAL_LOCK
impl UnwindSafe for GLOBAL_LOCK
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more