pub struct IdentityHandle { /* private fields */ }Expand description
Opaque handle holding an ed25519 keypair plus a local
TokenCache. Matches the PyO3 / NAPI Identity pyclass layout —
cheap to clone (both fields are Arcs inside the core), and the
cache is owned by the handle rather than shared across peers.
Same HandleGuard recipe as the cortex handles (see
super::handle_guard for soundness). Box stays leaked across
_free; inner Arcs live in ManuallyDrop so the free can
take and drop them after quiescing in-flight ops.
Auto Trait Implementations§
impl !Freeze for IdentityHandle
impl !RefUnwindSafe for IdentityHandle
impl Send for IdentityHandle
impl Sync for IdentityHandle
impl Unpin for IdentityHandle
impl UnsafeUnpin for IdentityHandle
impl !UnwindSafe for IdentityHandle
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