[−][src]Struct libgssapi::credential::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]
name: Option<&Name>,
time_req: Option<Duration>,
usage: CredUsage,
desired_mechs: Option<&OidSet>
) -> Result<Cred, Error>
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
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,