[][src]Enum sspi::ErrorKind

#[repr(u32)]
pub enum ErrorKind {
    Unknown,
    InsufficientMemory,
    InvalidHandle,
    UnsupportedFunction,
    TargetUnknown,
    InternalError,
    SecurityPackageNotFound,
    NotOwned,
    CannotInstall,
    InvalidToken,
    CannotPack,
    OperationNotSupported,
    NoImpersonation,
    LogonDenied,
    UnknownCredentials,
    NoCredentials,
    MessageAltered,
    OutOfSequence,
    NoAuthenticatingAuthority,
    BadPackageId,
    ContextExpired,
    IncompleteMessage,
    IncompleteCredentials,
    BufferTooSmall,
    WrongPrincipalName,
    TimeSkew,
    UntrustedRoot,
    IllegalMessage,
    CertificateUnknown,
    CertificateExpired,
    EncryptFailure,
    DecryptFailure,
    AlgorithmMismatch,
    SecurityQosFailed,
    UnfinishedContextDeleted,
    NoTgtReply,
    NoIpAddress,
    WrongCredentialHandle,
    CryptoSystemInvalid,
    MaxReferralsExceeded,
    MustBeKdc,
    StrongCryptoNotSupported,
    TooManyPrincipals,
    NoPaData,
    PkInitNameMismatch,
    SmartCardLogonRequired,
    ShutdownInProgress,
    KdcInvalidRequest,
    KdcUnknownEType,
    KdcUnknownEType2,
    UnsupportedPreAuth,
    DelegationRequired,
    BadBindings,
    MultipleAccounts,
    NoKerdKey,
    CertWrongUsage,
    DowngradeDetected,
    SmartCardCertificateRevoked,
    IssuingCAUntrusted,
    RevocationOffline,
    PkInitClientFailure,
    SmartCardCertExpired,
    NoS4uProtSupport,
    CrossRealmDelegationFailure,
    RevocationOfflineKdc,
    IssuingCaUntrustedKdc,
    KdcCertExpired,
    KdcCertRevoked,
    InvalidParameter,
    DelegationPolicy,
    PolicyNtlmOnly,
    NoContext,
    Pku2uCertFailure,
    MutualAuthFailed,
    OnlyHttpsAllowed,
    ApplicationProtocolMismatch,
}

The kind of an SSPI related error. Enables to specify an error based on its type.

Variants

Unknown
InsufficientMemory
InvalidHandle
UnsupportedFunction
TargetUnknown
InternalError

May correspond to any internal error (I/O error, server error, etc.).

SecurityPackageNotFound
NotOwned
CannotInstall
InvalidToken

Used in cases when supplied data is missing or invalid.

CannotPack
OperationNotSupported
NoImpersonation
LogonDenied
UnknownCredentials
NoCredentials
MessageAltered

Used in contexts of supplying invalid credentials.

OutOfSequence

Used when a required NTLM state does not correspond to the current.

NoAuthenticatingAuthority
BadPackageId
ContextExpired
IncompleteMessage
IncompleteCredentials
BufferTooSmall
WrongPrincipalName
TimeSkew
UntrustedRoot
IllegalMessage
CertificateUnknown
CertificateExpired
EncryptFailure
DecryptFailure
AlgorithmMismatch
SecurityQosFailed
UnfinishedContextDeleted
NoTgtReply
NoIpAddress
WrongCredentialHandle
CryptoSystemInvalid
MaxReferralsExceeded
MustBeKdc
StrongCryptoNotSupported
TooManyPrincipals
NoPaData
PkInitNameMismatch
SmartCardLogonRequired
ShutdownInProgress
KdcInvalidRequest
KdcUnknownEType
KdcUnknownEType2
UnsupportedPreAuth
DelegationRequired
BadBindings
MultipleAccounts
NoKerdKey
CertWrongUsage
DowngradeDetected
SmartCardCertificateRevoked
IssuingCAUntrusted
RevocationOffline
PkInitClientFailure
SmartCardCertExpired
NoS4uProtSupport
CrossRealmDelegationFailure
RevocationOfflineKdc
IssuingCaUntrustedKdc
KdcCertExpired
KdcCertRevoked
InvalidParameter
DelegationPolicy
PolicyNtlmOnly
NoContext
Pku2uCertFailure
MutualAuthFailed
OnlyHttpsAllowed
ApplicationProtocolMismatch

Trait Implementations

impl Clone for ErrorKind[src]

impl Copy for ErrorKind[src]

impl PartialEq<ErrorKind> for ErrorKind[src]

impl Debug for ErrorKind[src]

impl FromPrimitive for ErrorKind[src]

impl ToPrimitive for ErrorKind[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self