[−][src]Struct libgssapi::util::GssIov
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]
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]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,