[−]Struct sspi::ClientRequestFlags
Indicate requests for the context. Not all packages can support all requirements. Bit flags can be combined by using bitwise-OR operations.
MSDN
Methods
impl ClientRequestFlags
pub const DELEGATE: ClientRequestFlags
The server can use the context to authenticate to other servers as the client.
The MUTUAL_AUTH
flag must be set for this flag to work. Valid for Kerberos. Ignore this flag for constrained delegation.
pub const MUTUAL_AUTH: ClientRequestFlags
The mutual authentication policy of the service will be satisfied.
pub const REPLAY_DETECT: ClientRequestFlags
Detect replayed messages that have been encoded by using the encrypt_message
or make_signature
(TBI) functions.
pub const SEQUENCE_DETECT: ClientRequestFlags
Detect messages received out of sequence.
pub const CONFIDENTIALITY: ClientRequestFlags
Encrypt messages by using the encrypt_message
function.
pub const USE_SESSION_KEY: ClientRequestFlags
A new session key must be negotiated. This value is supported only by the Kerberos security package.
pub const PROMPT_FOR_CREDS: ClientRequestFlags
pub const USE_SUPPLIED_CREDS: ClientRequestFlags
Schannel must not attempt to supply credentials for the client automatically.
pub const ALLOCATE_MEMORY: ClientRequestFlags
The security package allocates output buffers for you.
pub const USE_DCE_STYLE: ClientRequestFlags
pub const DATAGRAM: ClientRequestFlags
pub const CONNECTION: ClientRequestFlags
The security context will not handle formatting messages. This value is the default for the Kerberos, Negotiate, and NTLM security packages.
pub const CALL_LEVEL: ClientRequestFlags
pub const FRAGMENT_SUPPLIED: ClientRequestFlags
pub const EXTENDED_ERROR: ClientRequestFlags
When errors occur, the remote party will be notified.
pub const STREAM: ClientRequestFlags
Support a stream-oriented connection.
pub const INTEGRITY: ClientRequestFlags
Sign messages and verify signatures by using the encrypt_message
and make_signature
(TBI) functions.
pub const IDENTIFY: ClientRequestFlags
pub const NULL_SESSION: ClientRequestFlags
pub const MANUAL_CRED_VALIDATION: ClientRequestFlags
Schannel must not authenticate the server automatically.
pub const RESERVED1: ClientRequestFlags
pub const FRAGMENT_TO_FIT: ClientRequestFlags
pub const FORWARD_CREDENTIALS: ClientRequestFlags
pub const NO_INTEGRITY: ClientRequestFlags
If this flag is set, the Integrity
flag is ignored. This value is supported only by the Negotiate and Kerberos security packages.
pub const USE_HTTP_STYLE: ClientRequestFlags
pub const UNVERIFIED_TARGET_NAME: ClientRequestFlags
pub const CONFIDENTIALITY_ONLY: ClientRequestFlags
pub const fn empty() -> ClientRequestFlags
Returns an empty set of flags
pub const fn all() -> ClientRequestFlags
Returns the set containing all flags.
pub const fn bits(&self) -> u32
Returns the raw value of the flags currently stored.
pub fn from_bits(bits: u32) -> Option<ClientRequestFlags>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
pub const fn from_bits_truncate(bits: u32) -> ClientRequestFlags
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
pub const fn is_empty(&self) -> bool
Returns true
if no flags are currently stored.
pub const fn is_all(&self) -> bool
Returns true
if all flags are currently set.
pub const fn intersects(&self, other: ClientRequestFlags) -> bool
Returns true
if there are flags common to both self
and other
.
pub const fn contains(&self, other: ClientRequestFlags) -> bool
Returns true
all of the flags in other
are contained within self
.
pub fn insert(&mut self, other: ClientRequestFlags)
Inserts the specified flags in-place.
pub fn remove(&mut self, other: ClientRequestFlags)
Removes the specified flags in-place.
pub fn toggle(&mut self, other: ClientRequestFlags)
Toggles the specified flags in-place.
pub fn set(&mut self, other: ClientRequestFlags, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl Extend<ClientRequestFlags> for ClientRequestFlags
fn extend<T: IntoIterator<Item = ClientRequestFlags>>(&mut self, iterator: T)
impl Clone for ClientRequestFlags
fn clone(&self) -> ClientRequestFlags
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ClientRequestFlags
impl Eq for ClientRequestFlags
impl Ord for ClientRequestFlags
fn cmp(&self, other: &ClientRequestFlags) -> Ordering
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<ClientRequestFlags> for ClientRequestFlags
fn eq(&self, other: &ClientRequestFlags) -> bool
fn ne(&self, other: &ClientRequestFlags) -> bool
impl PartialOrd<ClientRequestFlags> for ClientRequestFlags
fn partial_cmp(&self, other: &ClientRequestFlags) -> Option<Ordering>
fn lt(&self, other: &ClientRequestFlags) -> bool
fn le(&self, other: &ClientRequestFlags) -> bool
fn gt(&self, other: &ClientRequestFlags) -> bool
fn ge(&self, other: &ClientRequestFlags) -> bool
impl Debug for ClientRequestFlags
impl Sub<ClientRequestFlags> for ClientRequestFlags
type Output = ClientRequestFlags
The resulting type after applying the -
operator.
fn sub(self, other: ClientRequestFlags) -> ClientRequestFlags
Returns the set difference of the two sets of flags.
impl SubAssign<ClientRequestFlags> for ClientRequestFlags
fn sub_assign(&mut self, other: ClientRequestFlags)
Disables all flags enabled in the set.
impl Not for ClientRequestFlags
type Output = ClientRequestFlags
The resulting type after applying the !
operator.
fn not(self) -> ClientRequestFlags
Returns the complement of this set of flags.
impl BitAnd<ClientRequestFlags> for ClientRequestFlags
type Output = ClientRequestFlags
The resulting type after applying the &
operator.
fn bitand(self, other: ClientRequestFlags) -> ClientRequestFlags
Returns the intersection between the two sets of flags.
impl BitOr<ClientRequestFlags> for ClientRequestFlags
type Output = ClientRequestFlags
The resulting type after applying the |
operator.
fn bitor(self, other: ClientRequestFlags) -> ClientRequestFlags
Returns the union of the two sets of flags.
impl BitXor<ClientRequestFlags> for ClientRequestFlags
type Output = ClientRequestFlags
The resulting type after applying the ^
operator.
fn bitxor(self, other: ClientRequestFlags) -> ClientRequestFlags
Returns the left flags, but with all the right flags toggled.
impl BitAndAssign<ClientRequestFlags> for ClientRequestFlags
fn bitand_assign(&mut self, other: ClientRequestFlags)
Disables all flags disabled in the set.
impl BitOrAssign<ClientRequestFlags> for ClientRequestFlags
fn bitor_assign(&mut self, other: ClientRequestFlags)
Adds the set of flags.
impl BitXorAssign<ClientRequestFlags> for ClientRequestFlags
fn bitxor_assign(&mut self, other: ClientRequestFlags)
Toggles the set of flags.
impl Hash for ClientRequestFlags
fn hash<__H: Hasher>(&self, state: &mut __H)
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl FromIterator<ClientRequestFlags> for ClientRequestFlags
fn from_iter<T: IntoIterator<Item = ClientRequestFlags>>(
iterator: T
) -> ClientRequestFlags
iterator: T
) -> ClientRequestFlags
impl Octal for ClientRequestFlags
impl Binary for ClientRequestFlags
impl LowerHex for ClientRequestFlags
impl UpperHex for ClientRequestFlags
Auto Trait Implementations
impl Send for ClientRequestFlags
impl Sync for ClientRequestFlags
impl Unpin for ClientRequestFlags
impl UnwindSafe for ClientRequestFlags
impl RefUnwindSafe for ClientRequestFlags
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self