[][src]Enum parsec_client::auth::Authentication

pub enum Authentication {
    None,
    Direct(String),
    UnixPeerCredentials,
}

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

impl Authentication[src]

pub fn auth_type(&self) -> AuthType[src]

Get the Parsec authentication type based on the data type

Trait Implementations

impl Clone for Authentication[src]

impl Debug for Authentication[src]

impl<'_> From<&'_ Authentication> for RequestAuth[src]

impl PartialEq<Authentication> for Authentication[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.