pub struct TlsRoot {
sexp: SEXP,
}Expand description
A rooted SEXP from TLS protection.
This is similar to super::Root but without a compile-time lifetime tie to
the scope. The protection is valid as long as the enclosing
with_protect_scope block hasn’t exited.
§Warning
Using a TlsRoot after its scope has exited is undefined behavior.
The compile-time lifetime checking of super::Root is safer; use TLS
convenience only when necessary.
Fields§
§sexp: SEXPImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TlsRoot
impl RefUnwindSafe for TlsRoot
impl Send for TlsRoot
impl Sync for TlsRoot
impl Unpin for TlsRoot
impl UnsafeUnpin for TlsRoot
impl UnwindSafe for TlsRoot
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