pub struct Identity { /* private fields */ }Implementations§
Source§impl Identity
impl Identity
Sourcepub fn login_type(&self) -> LoginType
pub fn login_type(&self) -> LoginType
Returns the login type of this client identity.
The GlobalPlatform specification reserves implementation-defined login ranges,
so a login value outside the set named below is possible in principle. Such a
value is returned as LoginType::Unknown carrying the raw code instead of
aborting the TA, so a TA inspecting its callers must decide explicitly what to
do with a login it does not recognize — normally by rejecting the caller.
pub fn uuid(&self) -> Uuid
Trait Implementations§
impl Copy for Identity
Source§impl From<TEE_Identity> for Identity
impl From<TEE_Identity> for Identity
Source§fn from(raw: TEE_Identity) -> Self
fn from(raw: TEE_Identity) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Identity
impl RefUnwindSafe for Identity
impl Send for Identity
impl Sync for Identity
impl Unpin for Identity
impl UnsafeUnpin for Identity
impl UnwindSafe for Identity
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