[][src]Struct sspi::builders::AcceptSecurityContext

pub struct AcceptSecurityContext<'a, Inner, CredsHandle, CredsHandleSet, ContextRequirementsSet, TargetDataRepresentationSet, OutputSet> where
    Inner: SspiImpl,
    CredsHandleSet: ToAssign,
    ContextRequirementsSet: ToAssign,
    TargetDataRepresentationSet: ToAssign,
    OutputSet: ToAssign
{ pub credentials_handle: Option<&'a mut CredsHandle>, pub context_requirements: ServerRequestFlags, pub target_data_representation: DataRepresentation, pub output: &'a mut [SecurityBuffer], pub input: Option<&'a mut [SecurityBuffer]>, // some fields omitted }

A builder to execute one of the SSPI functions. Returned by the accept_security_context method.

Requirements for execution

These methods are required to be called before calling the execute method

Fields

credentials_handle: Option<&'a mut CredsHandle>context_requirements: ServerRequestFlagstarget_data_representation: DataRepresentationoutput: &'a mut [SecurityBuffer]input: Option<&'a mut [SecurityBuffer]>

Implementations

impl<'a, Inner: SspiImpl, CredsHandle, CredsHandleSet: ToAssign, ContextRequirementsSet: ToAssign, TargetDataRepresentationSet: ToAssign, OutputSet: ToAssign> AcceptSecurityContext<'a, Inner, CredsHandle, CredsHandleSet, ContextRequirementsSet, TargetDataRepresentationSet, OutputSet>[src]

pub fn with_credentials_handle(
    self,
    credentials_handle: &'a mut CredsHandle
) -> AcceptSecurityContext<'a, Inner, CredsHandle, WithCredentialsHandle, ContextRequirementsSet, TargetDataRepresentationSet, OutputSet>
[src]

Specifies the server credentials. To retrieve this handle, the server calls the acquire_credentials_handle method with either the CredentialUse::Inbound or CredentialUse::Outbound flag set.

pub fn with_context_requirements(
    self,
    context_requirements: ServerRequestFlags
) -> AcceptSecurityContext<'a, Inner, CredsHandle, CredsHandleSet, WithContextRequirements, TargetDataRepresentationSet, OutputSet>
[src]

Specifies bit flags that specify the attributes required by the server to establish the context.

pub fn with_target_data_representation(
    self,
    target_data_representation: DataRepresentation
) -> AcceptSecurityContext<'a, Inner, CredsHandle, CredsHandleSet, ContextRequirementsSet, WithTargetDataRepresentation, OutputSet>
[src]

Specifies the data representation, such as byte ordering, on the target.

pub fn with_output(
    self,
    output: &'a mut [SecurityBuffer]
) -> AcceptSecurityContext<'a, Inner, CredsHandle, CredsHandleSet, ContextRequirementsSet, TargetDataRepresentationSet, WithOutput>
[src]

Specifies a mutable reference to a buffer with SecurityBuffer that contains the output buffer descriptor. This buffer is sent to the client for input into additional calls to initialize_security_context. An output buffer may be generated even if the function returns SecurityStatus::Ok. Any buffer generated must be sent back to the client application.

pub fn with_input(self, input: &'a mut [SecurityBuffer]) -> Self[src]

Specifies a mutable reference to a SecurityBuffer generated by a client call to initialize_security_context. The structure contains the input buffer descriptor.

impl<'a, Inner: SspiImpl<CredentialsHandle = CredsHandle>, CredsHandle> AcceptSecurityContext<'a, I, C, WithCredentialsHandle, WithContextRequirements, WithTargetDataRepresentation, WithOutput>[src]

pub fn execute(self) -> Result<AcceptSecurityContextResult>[src]

Executes the SSPI function that the builder represents.

Trait Implementations

impl<'a, Inner: Debug, CredsHandle: Debug, CredsHandleSet: Debug, ContextRequirementsSet: Debug, TargetDataRepresentationSet: Debug, OutputSet: Debug> Debug for AcceptSecurityContext<'a, Inner, CredsHandle, CredsHandleSet, ContextRequirementsSet, TargetDataRepresentationSet, OutputSet> where
    Inner: SspiImpl,
    CredsHandleSet: ToAssign,
    ContextRequirementsSet: ToAssign,
    TargetDataRepresentationSet: ToAssign,
    OutputSet: ToAssign
[src]

Auto Trait Implementations

impl<'a, Inner, CredsHandle, CredsHandleSet, ContextRequirementsSet, TargetDataRepresentationSet, OutputSet> RefUnwindSafe for AcceptSecurityContext<'a, Inner, CredsHandle, CredsHandleSet, ContextRequirementsSet, TargetDataRepresentationSet, OutputSet> where
    ContextRequirementsSet: RefUnwindSafe,
    CredsHandle: RefUnwindSafe,
    CredsHandleSet: RefUnwindSafe,
    Inner: RefUnwindSafe,
    OutputSet: RefUnwindSafe,
    TargetDataRepresentationSet: RefUnwindSafe

impl<'a, Inner, CredsHandle, CredsHandleSet, ContextRequirementsSet, TargetDataRepresentationSet, OutputSet> Send for AcceptSecurityContext<'a, Inner, CredsHandle, CredsHandleSet, ContextRequirementsSet, TargetDataRepresentationSet, OutputSet> where
    ContextRequirementsSet: Send,
    CredsHandle: Send,
    CredsHandleSet: Send,
    Inner: Send,
    OutputSet: Send,
    TargetDataRepresentationSet: Send

impl<'a, Inner, CredsHandle, CredsHandleSet, ContextRequirementsSet, TargetDataRepresentationSet, OutputSet> Sync for AcceptSecurityContext<'a, Inner, CredsHandle, CredsHandleSet, ContextRequirementsSet, TargetDataRepresentationSet, OutputSet> where
    ContextRequirementsSet: Sync,
    CredsHandle: Sync,
    CredsHandleSet: Sync,
    Inner: Sync,
    OutputSet: Sync,
    TargetDataRepresentationSet: Sync

impl<'a, Inner, CredsHandle, CredsHandleSet, ContextRequirementsSet, TargetDataRepresentationSet, OutputSet> Unpin for AcceptSecurityContext<'a, Inner, CredsHandle, CredsHandleSet, ContextRequirementsSet, TargetDataRepresentationSet, OutputSet> where
    ContextRequirementsSet: Unpin,
    CredsHandleSet: Unpin,
    OutputSet: Unpin,
    TargetDataRepresentationSet: Unpin

impl<'a, Inner, CredsHandle, CredsHandleSet, ContextRequirementsSet, TargetDataRepresentationSet, OutputSet> !UnwindSafe for AcceptSecurityContext<'a, Inner, CredsHandle, CredsHandleSet, ContextRequirementsSet, TargetDataRepresentationSet, OutputSet>

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> Same<T> for T

type Output = T

Should always be Self

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.