#[repr(C)]
pub struct dada_client {
Show 18 fields pub log: *mut multilog_t, pub data_block: *mut ipcio_t, pub header_block: *mut ipcbuf_t, pub open_function: Option<unsafe extern "C" fn(arg1: *mut dada_client) -> c_int>, pub io_function: Option<unsafe extern "C" fn(arg1: *mut dada_client, data: *mut c_void, data_size: u64) -> i64>, pub io_block_function: Option<unsafe extern "C" fn(arg1: *mut dada_client, data: *mut c_void, data_size: u64, block_id: u64) -> i64>, pub io_block_function_cuda: Option<unsafe extern "C" fn(arg1: *mut dada_client, data: *mut c_void, data_size: u64, block_id: u64) -> i64>, pub close_function: Option<unsafe extern "C" fn(arg1: *mut dada_client, bytes_written: u64) -> c_int>, pub context: *mut c_void, pub header: *mut c_char, pub header_size: u64, pub header_transfer: c_char, pub direction: c_char, pub fd: c_int, pub transfer_bytes: u64, pub optimal_bytes: u64, pub quit: c_char, pub quiet: c_int,
}

Fields§

§log: *mut multilog_t

The status and error logging interface

§data_block: *mut ipcio_t

The Data Block interface

§header_block: *mut ipcbuf_t

The Header Block interface

§open_function: Option<unsafe extern "C" fn(arg1: *mut dada_client) -> c_int>

Pointer to the function that opens the data transfer target

§io_function: Option<unsafe extern "C" fn(arg1: *mut dada_client, data: *mut c_void, data_size: u64) -> i64>

Pointer to the function that transfers data to/from the target

§io_block_function: Option<unsafe extern "C" fn(arg1: *mut dada_client, data: *mut c_void, data_size: u64, block_id: u64) -> i64>

Pointer to the function that directly operates on shared memory blocks

§io_block_function_cuda: Option<unsafe extern "C" fn(arg1: *mut dada_client, data: *mut c_void, data_size: u64, block_id: u64) -> i64>

Pointer to the function that directly operations on device memory

§close_function: Option<unsafe extern "C" fn(arg1: *mut dada_client, bytes_written: u64) -> c_int>

Pointer to the function that closes the data transfer target

§context: *mut c_void

Additional context information

§header: *mut c_char§header_size: u64§header_transfer: c_char§direction: c_char§fd: c_int

The file descriptor of the data transfer target

§transfer_bytes: u64

The total number of bytes to be transfered to/from the target

§optimal_bytes: u64

The optimal number of bytes to transfer to/from the target buffer

§quit: c_char

The quit flag

§quiet: c_int

The quiet flag

Trait Implementations§

source§

impl Clone for dada_client

source§

fn clone(&self) -> dada_client

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for dada_client

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Copy for dada_client

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere
T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere
T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere
T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere
U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere
T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere
U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere
U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.