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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more