pub struct MobileIdentity { /* private fields */ }Expand description
Identity secret retained by the Rust engine after one controlled unlock transfer. Swift receives only public identity records from this object.
Implementations§
Source§impl MobileIdentity
impl MobileIdentity
pub fn unlock(secret_key: Vec<u8>) -> Result<Arc<Self>, MobileError>
pub fn public_identity(&self) -> PublicIdentityRecord
Trait Implementations§
Source§impl<UT> LiftRef<UT> for MobileIdentity
impl<UT> LiftRef<UT> for MobileIdentity
type LiftType = Arc<MobileIdentity>
Source§impl<UT> LowerError<UT> for MobileIdentity
impl<UT> LowerError<UT> for MobileIdentity
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 MobileIdentity
impl<UT> LowerReturn<UT> for MobileIdentity
Source§type ReturnType = <Arc<MobileIdentity> as LowerReturn<UniFfiTag>>::ReturnType
type ReturnType = <Arc<MobileIdentity> 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
Source§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 MobileIdentity
impl<UT> TypeId<UT> for MobileIdentity
Auto Trait Implementations§
impl !Freeze for MobileIdentity
impl RefUnwindSafe for MobileIdentity
impl Send for MobileIdentity
impl Sync for MobileIdentity
impl Unpin for MobileIdentity
impl UnwindSafe for MobileIdentity
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more