[][src]Struct libgssapi::util::GssIov

#[repr(transparent)]
pub struct GssIov<'a>(_, _);

Methods

impl<'a> GssIov<'a>[src]

pub fn new(typ: GssIovType, data: &'a mut [u8]) -> GssIov<'a>[src]

Create a new real Iov for calls to wrap_iov.

pub fn new_alloc(typ: GssIovType) -> GssIov<'a>[src]

Create a new real Iov that will have necessary storage allocated as needed by gssapi.

pub fn typ(&self) -> Option<GssIovType>[src]

pub fn as_fake(self) -> GssIovFake[src]

cast a real iov to a fake one. You need to do this for the DATA buffer for the call to wrap_iov_length.

pub fn header_length(&self, data: &GssIov<'a>) -> Option<usize>[src]

In the special case where you unwrap a token using the "stream" method, and end up with a pointer into it, you may want to know the length of the header, so you can, for example, split out just the data and send it somewhere without copying it. This function will tell you that length. Don't use it otherwise.

pub fn len(&self) -> usize[src]

Trait Implementations

impl<'a> Debug for GssIov<'a>[src]

impl<'a> Deref for GssIov<'a>[src]

type Target = [u8]

The resulting type after dereferencing.

impl<'a> DerefMut for GssIov<'a>[src]

impl<'a> Drop for GssIov<'a>[src]

impl<'a> Send for GssIov<'a>[src]

impl<'a> Sync for GssIov<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for GssIov<'a>

impl<'a> Unpin for GssIov<'a>

impl<'a> UnwindSafe for GssIov<'a>

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, 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.