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§
Trait Implementations§
source§impl Clone for Authentication
impl Clone for Authentication
source§fn clone(&self) -> Authentication
fn clone(&self) -> Authentication
Returns a copy 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 Debug for Authentication
impl Debug for Authentication
source§impl PartialEq for Authentication
impl PartialEq for Authentication
source§impl 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§
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