#[repr(C)]pub struct pw_protocol_implementation {
pub version: u32,
pub new_client: Option<unsafe extern "C" fn(protocol: *mut pw_protocol, core: *mut pw_core, props: *const spa_dict) -> *mut pw_protocol_client>,
pub add_server: Option<unsafe extern "C" fn(protocol: *mut pw_protocol, core: *mut pw_impl_core, props: *const spa_dict) -> *mut pw_protocol_server>,
pub add_fd_server: Option<unsafe extern "C" fn(protocol: *mut pw_protocol, core: *mut pw_impl_core, listen_fd: c_int, close_fd: c_int, props: *const spa_dict) -> *mut pw_protocol_server>,
}
Fields§
§version: u32
§new_client: Option<unsafe extern "C" fn(protocol: *mut pw_protocol, core: *mut pw_core, props: *const spa_dict) -> *mut pw_protocol_client>
§add_server: Option<unsafe extern "C" fn(protocol: *mut pw_protocol, core: *mut pw_impl_core, props: *const spa_dict) -> *mut pw_protocol_server>
§add_fd_server: Option<unsafe extern "C" fn(protocol: *mut pw_protocol, core: *mut pw_impl_core, listen_fd: c_int, close_fd: c_int, props: *const spa_dict) -> *mut pw_protocol_server>
Trait Implementations§
Source§impl Clone for pw_protocol_implementation
impl Clone for pw_protocol_implementation
Source§fn clone(&self) -> pw_protocol_implementation
fn clone(&self) -> pw_protocol_implementation
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 moreSource§impl Debug for pw_protocol_implementation
impl Debug for pw_protocol_implementation
impl Copy for pw_protocol_implementation
Auto Trait Implementations§
impl Freeze for pw_protocol_implementation
impl RefUnwindSafe for pw_protocol_implementation
impl Send for pw_protocol_implementation
impl Sync for pw_protocol_implementation
impl Unpin for pw_protocol_implementation
impl UnwindSafe for pw_protocol_implementation
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