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§
source§impl 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§
source§impl Clone for SecurityBuffer
impl Clone for SecurityBuffer
source§fn clone(&self) -> SecurityBuffer
fn clone(&self) -> SecurityBuffer
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for SecurityBuffer
impl RefUnwindSafe for SecurityBuffer
impl Send for SecurityBuffer
impl Sync for SecurityBuffer
impl Unpin for SecurityBuffer
impl UnwindSafe for SecurityBuffer
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more