Enum parsec_client::auth::Authentication
source · [−]pub enum Authentication {
None,
Direct(String),
UnixPeerCredentials,
}
Expand description
Authentication data used in Parsec requests
Variants
None
Used in cases where no authentication is desired or required
Direct(String)
Data used for direct, identity-based authentication
Warning: Systems using direct authentication require extra measures to be as secure as deployments with other authentication mechanisms. Please check the Parsec Threat Model for more information.
UnixPeerCredentials
Used for authentication via Peer Credentials provided by Unix operating systems for Domain Socket connections.
Implementations
sourceimpl Authentication
impl Authentication
Trait Implementations
sourceimpl Clone for Authentication
impl Clone for Authentication
sourcefn clone(&self) -> Authentication
fn clone(&self) -> Authentication
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Authentication
impl Debug for Authentication
sourceimpl PartialEq<Authentication> for Authentication
impl PartialEq<Authentication> for Authentication
sourceimpl TryFrom<&'_ Authentication> for RequestAuth
impl TryFrom<&'_ Authentication> for RequestAuth
Auto Trait Implementations
impl RefUnwindSafe for Authentication
impl Send for Authentication
impl Sync for Authentication
impl Unpin for Authentication
impl UnwindSafe for Authentication
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more