Struct gnunet_sys::GNUNET_BIO_WriteSpec[][src]

#[repr(C)]pub struct GNUNET_BIO_WriteSpec {
    pub wh: GNUNET_BIO_WriteHandler,
    pub cls: *mut c_void,
    pub what: *const c_char,
    pub source: *mut c_void,
    pub source_size: usize,
}

Structure specifying a writing operation on an IO handle.

Fields

wh: GNUNET_BIO_WriteHandler

Function performing data serialization.

cls: *mut c_void

Closure for @e rh. Can be NULL.

what: *const c_char

What is being read (for error message creation)

source: *mut c_void

Source buffer. The data in this buffer will be written to the handle.

source_size: usize

Size of @e source. If it’s smaller than the real size of @e source, only this many bytes will be written.

Trait Implementations

impl Clone for GNUNET_BIO_WriteSpec[src]

impl Copy for GNUNET_BIO_WriteSpec[src]

impl Debug for GNUNET_BIO_WriteSpec[src]

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.