indigo_client

Struct indigo_client 

Source
#[repr(C)]
pub struct indigo_client { pub name: [c_char; 128], pub is_remote: bool, pub client_context: *mut c_void, pub last_result: indigo_result, pub version: indigo_version, pub enable_blob_mode_records: *mut indigo_enable_blob_mode_record, pub attach: Option<unsafe extern "C" fn(client: *mut indigo_client) -> indigo_result>, pub define_property: Option<unsafe extern "C" fn(client: *mut indigo_client, device: *mut indigo_device, property: *mut indigo_property, message: *const c_char) -> indigo_result>, pub update_property: Option<unsafe extern "C" fn(client: *mut indigo_client, device: *mut indigo_device, property: *mut indigo_property, message: *const c_char) -> indigo_result>, pub delete_property: Option<unsafe extern "C" fn(client: *mut indigo_client, device: *mut indigo_device, property: *mut indigo_property, message: *const c_char) -> indigo_result>, pub send_message: Option<unsafe extern "C" fn(client: *mut indigo_client, device: *mut indigo_device, message: *const c_char) -> indigo_result>, pub detach: Option<unsafe extern "C" fn(client: *mut indigo_client) -> indigo_result>, }
Expand description

Client structure definition

Fields§

§name: [c_char; 128]

< client name

§is_remote: bool

< is remote client

§client_context: *mut c_void

< any client specific data

§last_result: indigo_result

< result of last bus operation

§version: indigo_version

< client version

§enable_blob_mode_records: *mut indigo_enable_blob_mode_record

< enable blob mode

§attach: Option<unsafe extern "C" fn(client: *mut indigo_client) -> indigo_result>

callback called when client is attached to the bus

§define_property: Option<unsafe extern "C" fn(client: *mut indigo_client, device: *mut indigo_device, property: *mut indigo_property, message: *const c_char) -> indigo_result>

callback called when device broadcast property definition

§update_property: Option<unsafe extern "C" fn(client: *mut indigo_client, device: *mut indigo_device, property: *mut indigo_property, message: *const c_char) -> indigo_result>

callback called when device broadcast property value change

§delete_property: Option<unsafe extern "C" fn(client: *mut indigo_client, device: *mut indigo_device, property: *mut indigo_property, message: *const c_char) -> indigo_result>

callback called when device broadcast property removal

§send_message: Option<unsafe extern "C" fn(client: *mut indigo_client, device: *mut indigo_device, message: *const c_char) -> indigo_result>

callback called when device broadcast a message

§detach: Option<unsafe extern "C" fn(client: *mut indigo_client) -> indigo_result>

callback called when client is detached from the bus

Trait Implementations§

Source§

impl Debug for indigo_client

Source§

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

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

impl Hash for indigo_client

Source§

fn hash<H: Hasher>(&self, state: &mut H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for indigo_client

Source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Eq for indigo_client

Source§

impl Send for indigo_client

Source§

impl Sync for indigo_client

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

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, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

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

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.