#[repr(C)]pub struct tm_collaboration_p2p_api {
pub create: Option<unsafe extern "C" fn(coll: *mut tm_collaboration_o, allocator: *mut tm_allocator_i) -> *mut tm_collaboration_p2p_o>,
pub destroy: Option<unsafe extern "C" fn(coll_p2p: *mut tm_collaboration_p2p_o)>,
pub update: Option<unsafe extern "C" fn(coll_p2p: *mut tm_collaboration_p2p_o)>,
pub host: Option<unsafe extern "C" fn(coll_p2p: *mut tm_collaboration_p2p_o, port: u32, use_upnp: bool)>,
pub connect: Option<unsafe extern "C" fn(coll_p2p: *mut tm_collaboration_p2p_o, address: *const tm_socket_address_t)>,
pub discovered_lan_hosts: Option<unsafe extern "C" fn(coll_p2p: *const tm_collaboration_p2p_o, hosts: *mut tm_collaboration_discovered_host_t, max_hosts: u32) -> u32>,
}Fields§
§create: Option<unsafe extern "C" fn(coll: *mut tm_collaboration_o, allocator: *mut tm_allocator_i) -> *mut tm_collaboration_p2p_o>§destroy: Option<unsafe extern "C" fn(coll_p2p: *mut tm_collaboration_p2p_o)>§update: Option<unsafe extern "C" fn(coll_p2p: *mut tm_collaboration_p2p_o)>§host: Option<unsafe extern "C" fn(coll_p2p: *mut tm_collaboration_p2p_o, port: u32, use_upnp: bool)>§connect: Option<unsafe extern "C" fn(coll_p2p: *mut tm_collaboration_p2p_o, address: *const tm_socket_address_t)>§discovered_lan_hosts: Option<unsafe extern "C" fn(coll_p2p: *const tm_collaboration_p2p_o, hosts: *mut tm_collaboration_discovered_host_t, max_hosts: u32) -> u32>Trait Implementations§
Source§impl Clone for tm_collaboration_p2p_api
impl Clone for tm_collaboration_p2p_api
Source§fn clone(&self) -> tm_collaboration_p2p_api
fn clone(&self) -> tm_collaboration_p2p_api
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for tm_collaboration_p2p_api
Auto Trait Implementations§
impl Freeze for tm_collaboration_p2p_api
impl RefUnwindSafe for tm_collaboration_p2p_api
impl Send for tm_collaboration_p2p_api
impl Sync for tm_collaboration_p2p_api
impl Unpin for tm_collaboration_p2p_api
impl UnsafeUnpin for tm_collaboration_p2p_api
impl UnwindSafe for tm_collaboration_p2p_api
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more