pub enum CredentialsRef<'a> {
RootSeed(&'a RootSeed),
ClientCredentials(&'a ClientCredentials),
}Expand description
Borrowed version of Credentials.
Variants§
RootSeed(&'a RootSeed)
Authenticate with a borrowed RootSeed.
ClientCredentials(&'a ClientCredentials)
Authenticate with borrowed ClientCredentials.
Trait Implementations§
Source§impl<'a> Clone for CredentialsRef<'a>
impl<'a> Clone for CredentialsRef<'a>
Source§fn clone(&self) -> CredentialsRef<'a>
fn clone(&self) -> CredentialsRef<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for CredentialsRef<'a>
impl<'a> Debug for CredentialsRef<'a>
Source§impl<'a> From<&'a ClientCredentials> for CredentialsRef<'a>
impl<'a> From<&'a ClientCredentials> for CredentialsRef<'a>
Source§fn from(cc: &'a ClientCredentials) -> Self
fn from(cc: &'a ClientCredentials) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a RootSeed> for CredentialsRef<'a>
impl<'a> From<&'a RootSeed> for CredentialsRef<'a>
impl<'a> Copy for CredentialsRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for CredentialsRef<'a>
impl<'a> RefUnwindSafe for CredentialsRef<'a>
impl<'a> Send for CredentialsRef<'a>
impl<'a> Sync for CredentialsRef<'a>
impl<'a> Unpin for CredentialsRef<'a>
impl<'a> UnwindSafe for CredentialsRef<'a>
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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