Struct sspi::SecurityBuffer
source · [−]pub struct SecurityBuffer {
pub buffer: Vec<u8>,
pub buffer_type: SecurityBufferType,
}
Expand description
Describes a buffer allocated by a transport application to pass to a security package.
MSDN
Fields
buffer: Vec<u8>
buffer_type: SecurityBufferType
Implementations
sourceimpl SecurityBuffer
impl SecurityBuffer
pub fn new(buffer: Vec<u8>, buffer_type: SecurityBufferType) -> Self
pub fn find_buffer(
buffers: &[SecurityBuffer],
buffer_type: SecurityBufferType
) -> Result<&SecurityBuffer>
pub fn find_buffer_mut(
buffers: &mut [SecurityBuffer],
buffer_type: SecurityBufferType
) -> Result<&mut SecurityBuffer>
Trait Implementations
sourceimpl Clone for SecurityBuffer
impl Clone for SecurityBuffer
sourcefn clone(&self) -> SecurityBuffer
fn clone(&self) -> SecurityBuffer
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl RefUnwindSafe for SecurityBuffer
impl Send for SecurityBuffer
impl Sync for SecurityBuffer
impl Unpin for SecurityBuffer
impl UnwindSafe for SecurityBuffer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more