pub struct OCamlRuntimeStartupGuard { /* private fields */ }
Expand description
RAII guard for the OCaml runtime.
Methods from Deref<Target = OCamlRuntime>§
Sourcepub fn releasing_runtime<T, F>(&mut self, f: F) -> Twhere
F: FnOnce() -> T,
pub fn releasing_runtime<T, F>(&mut self, f: F) -> Twhere
F: FnOnce() -> T,
Release the OCaml runtime lock, call f
, and re-acquire the OCaml runtime lock.
Trait Implementations§
Source§impl Deref for OCamlRuntimeStartupGuard
impl Deref for OCamlRuntimeStartupGuard
Source§type Target = OCamlRuntime
type Target = OCamlRuntime
The resulting type after dereferencing.
Source§fn deref(&self) -> &OCamlRuntime
fn deref(&self) -> &OCamlRuntime
Dereferences the value.
Source§impl DerefMut for OCamlRuntimeStartupGuard
impl DerefMut for OCamlRuntimeStartupGuard
Source§fn deref_mut(&mut self) -> &mut OCamlRuntime
fn deref_mut(&mut self) -> &mut OCamlRuntime
Mutably dereferences the value.
Auto Trait Implementations§
impl Freeze for OCamlRuntimeStartupGuard
impl RefUnwindSafe for OCamlRuntimeStartupGuard
impl !Send for OCamlRuntimeStartupGuard
impl !Sync for OCamlRuntimeStartupGuard
impl Unpin for OCamlRuntimeStartupGuard
impl UnwindSafe for OCamlRuntimeStartupGuard
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