[][src]Struct tm_sys::ffi::tm_collaboration_api

#[repr(C)]pub struct tm_collaboration_api {
    pub create: Option<unsafe extern "C" fn(a: *mut tm_allocator_i, config: *const tm_collaboration_config_t) -> *mut tm_collaboration_o>,
    pub destroy: Option<unsafe extern "C" fn(coll: *mut tm_collaboration_o)>,
    pub status: Option<unsafe extern "C" fn(coll: *const tm_collaboration_o) -> tm_collaboration_status>,
    pub is_downloading: Option<unsafe extern "C" fn(coll: *const tm_collaboration_o, bytes: *mut u64, total: *mut u64) -> bool>,
    pub set_session: Option<unsafe extern "C" fn(coll: *mut tm_collaboration_o, session: *const tm_collaboration_session_i)>,
    pub session: Option<unsafe extern "C" fn(coll: *mut tm_collaboration_o) -> *mut tm_collaboration_session_i>,
    pub disconnect: Option<unsafe extern "C" fn(coll: *mut tm_collaboration_o)>,
    pub update: Option<unsafe extern "C" fn(coll: *mut tm_collaboration_o)>,
    pub handle: Option<unsafe extern "C" fn(coll: *const tm_collaboration_o) -> *const c_char>,
    pub set_handle: Option<unsafe extern "C" fn(c: *mut tm_collaboration_o, handle: *mut c_char)>,
    pub host_handle: Option<unsafe extern "C" fn(c: *const tm_collaboration_o) -> *const c_char>,
    pub num_clients: Option<unsafe extern "C" fn(coll: *const tm_collaboration_o) -> u32>,
    pub client_handle: Option<unsafe extern "C" fn(coll: *const tm_collaboration_o, i: u32) -> *const c_char>,
    pub all_handles: Option<unsafe extern "C" fn(coll: *const tm_collaboration_o, ta: *mut tm_temp_allocator_i) -> *mut *const c_char>,
    pub send_chat: Option<unsafe extern "C" fn(coll: *mut tm_collaboration_o, msg: *const c_char)>,
    pub num_chat_messages: Option<unsafe extern "C" fn(coll: *const tm_collaboration_o) -> u32>,
    pub chat_message: Option<unsafe extern "C" fn(coll: *const tm_collaboration_o, i: u32, sender: *mut *const c_char) -> *const c_char>,
    pub resynchronize_state: Option<unsafe extern "C" fn(coll: *mut tm_collaboration_o, tt: *mut tm_the_truth_o)>,
    pub send_test_packages: Option<unsafe extern "C" fn(coll: *mut tm_collaboration_o, size: u64, num: u32)>,
}

Fields

create: Option<unsafe extern "C" fn(a: *mut tm_allocator_i, config: *const tm_collaboration_config_t) -> *mut tm_collaboration_o>destroy: Option<unsafe extern "C" fn(coll: *mut tm_collaboration_o)>status: Option<unsafe extern "C" fn(coll: *const tm_collaboration_o) -> tm_collaboration_status>is_downloading: Option<unsafe extern "C" fn(coll: *const tm_collaboration_o, bytes: *mut u64, total: *mut u64) -> bool>set_session: Option<unsafe extern "C" fn(coll: *mut tm_collaboration_o, session: *const tm_collaboration_session_i)>session: Option<unsafe extern "C" fn(coll: *mut tm_collaboration_o) -> *mut tm_collaboration_session_i>disconnect: Option<unsafe extern "C" fn(coll: *mut tm_collaboration_o)>update: Option<unsafe extern "C" fn(coll: *mut tm_collaboration_o)>handle: Option<unsafe extern "C" fn(coll: *const tm_collaboration_o) -> *const c_char>set_handle: Option<unsafe extern "C" fn(c: *mut tm_collaboration_o, handle: *mut c_char)>host_handle: Option<unsafe extern "C" fn(c: *const tm_collaboration_o) -> *const c_char>num_clients: Option<unsafe extern "C" fn(coll: *const tm_collaboration_o) -> u32>client_handle: Option<unsafe extern "C" fn(coll: *const tm_collaboration_o, i: u32) -> *const c_char>all_handles: Option<unsafe extern "C" fn(coll: *const tm_collaboration_o, ta: *mut tm_temp_allocator_i) -> *mut *const c_char>send_chat: Option<unsafe extern "C" fn(coll: *mut tm_collaboration_o, msg: *const c_char)>num_chat_messages: Option<unsafe extern "C" fn(coll: *const tm_collaboration_o) -> u32>chat_message: Option<unsafe extern "C" fn(coll: *const tm_collaboration_o, i: u32, sender: *mut *const c_char) -> *const c_char>resynchronize_state: Option<unsafe extern "C" fn(coll: *mut tm_collaboration_o, tt: *mut tm_the_truth_o)>send_test_packages: Option<unsafe extern "C" fn(coll: *mut tm_collaboration_o, size: u64, num: u32)>

Trait Implementations

impl Clone for tm_collaboration_api[src]

impl Copy for tm_collaboration_api[src]

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