Struct gnunet_sys::GNUNET_BIO_ReadSpec[][src]

#[repr(C)]pub struct GNUNET_BIO_ReadSpec {
    pub rh: GNUNET_BIO_ReadHandler,
    pub cls: *mut c_void,
    pub what: *const c_char,
    pub target: *mut c_void,
    pub size: usize,
}

Structure specifying a reading operation on an IO handle.

Fields

rh: GNUNET_BIO_ReadHandler

Function performing data deserialization.

cls: *mut c_void

Closure for @e rh. Can be NULL.

what: *const c_char

What is being read (for error message creation)

target: *mut c_void

Destination buffer. Can also be a pointer to a pointer, especially for dynamically allocated structures.

size: usize

Size of @e target. Can be 0 if unknown or not fixed.

Trait Implementations

impl Clone for GNUNET_BIO_ReadSpec[src]

impl Copy for GNUNET_BIO_ReadSpec[src]

impl Debug for GNUNET_BIO_ReadSpec[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.