pub struct StaticKeyManager { /* private fields */ }
Expand description
Last but not least we provide a StaticKeyManager, which can be used in cases where there is a single key during runtime, for example in tests.
Implementations§
Trait Implementations§
Source§impl KeyManager for StaticKeyManager
impl KeyManager for StaticKeyManager
Source§impl<UT> LiftRef<UT> for StaticKeyManager
impl<UT> LiftRef<UT> for StaticKeyManager
type LiftType = Arc<StaticKeyManager>
Source§impl<UT> LowerError<UT> for StaticKeyManager
impl<UT> LowerError<UT> for StaticKeyManager
Source§fn lower_error(obj: Self) -> RustBuffer
fn lower_error(obj: Self) -> RustBuffer
Lower this value for scaffolding function return Read more
Source§impl<UT> LowerReturn<UT> for StaticKeyManager
impl<UT> LowerReturn<UT> for StaticKeyManager
Source§type ReturnType = <Arc<StaticKeyManager> as LowerReturn<UniFfiTag>>::ReturnType
type ReturnType = <Arc<StaticKeyManager> as LowerReturn<UniFfiTag>>::ReturnType
The type that should be returned by scaffolding functions for this type. Read more
Source§fn lower_return(obj: Self) -> Result<Self::ReturnType, RustCallError>
fn lower_return(obj: Self) -> Result<Self::ReturnType, RustCallError>
Lower the return value from an scaffolding call Read more
§fn handle_failed_lift(
error: LiftArgsError,
) -> Result<Self::ReturnType, RustCallError>
fn handle_failed_lift( error: LiftArgsError, ) -> Result<Self::ReturnType, RustCallError>
Lower the return value for failed argument lifts Read more
Source§impl<UT> TypeId<UT> for StaticKeyManager
impl<UT> TypeId<UT> for StaticKeyManager
const TYPE_ID_META: MetadataBuffer
Auto Trait Implementations§
impl Freeze for StaticKeyManager
impl RefUnwindSafe for StaticKeyManager
impl Send for StaticKeyManager
impl Sync for StaticKeyManager
impl Unpin for StaticKeyManager
impl UnwindSafe for StaticKeyManager
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
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<>
Read more