[][src]Struct libgssapi::credential::Cred

pub struct Cred(_);

gssapi credentials.

Methods

impl Cred[src]

pub fn acquire(
    name: Option<&Name>,
    time_req: Option<Duration>,
    usage: CredUsage,
    desired_mechs: Option<&OidSet>
) -> Result<Cred, Error>
[src]

Acquire gssapi credentials for name or the default name, lasting for time_req or as long as possible, for the purpose of usage, and for use with desired_mechs or the default mechanism.

pub fn info(&self) -> Result<CredInfo, Error>[src]

Return all the information associated with this credential

pub fn name(&self) -> Result<Name, Error>[src]

Return the name associated with this credential

pub fn lifetime(&self) -> Result<Duration, Error>[src]

Return the lifetime of this credential

pub fn usage(&self) -> Result<CredUsage, Error>[src]

Return the allowed usage of this credential

pub fn mechanisms(&self) -> Result<OidSet, Error>[src]

Return the mechanisms this credential may be used with

Trait Implementations

impl Debug for Cred[src]

impl Drop for Cred[src]

impl Send for Cred[src]

impl Sync for Cred[src]

Auto Trait Implementations

impl RefUnwindSafe for Cred

impl Unpin for Cred

impl UnwindSafe for Cred

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, 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.