[][src]Struct mmal_sys::MMAL_COMPONENT_T

#[repr(C)]
pub struct MMAL_COMPONENT_T {
    pub priv_: *mut MMAL_COMPONENT_PRIVATE_T,
    pub userdata: *mut MMAL_COMPONENT_USERDATA_T,
    pub name: *const c_char,
    pub is_enabled: u32,
    pub control: *mut MMAL_PORT_T,
    pub input_num: u32,
    pub input: *mut *mut MMAL_PORT_T,
    pub output_num: u32,
    pub output: *mut *mut MMAL_PORT_T,
    pub clock_num: u32,
    pub clock: *mut *mut MMAL_PORT_T,
    pub port_num: u32,
    pub port: *mut *mut MMAL_PORT_T,
    pub id: u32,
}

Definition of a component.

Fields

priv_: *mut MMAL_COMPONENT_PRIVATE_T

Pointer to the private data of the module in use

userdata: *mut MMAL_COMPONENT_USERDATA_T

Pointer to private data of the client

name: *const c_char

Component name

is_enabled: u32

Specifies whether the component is enabled or not

control: *mut MMAL_PORT_T

All components expose a control port. The control port is used by clients to set / get parameters that are global to the component. It is also used to receive events, which again are global to the component. To be able to receive events, the client needs to enable and register a callback on the control port.

input_num: u32

< Number of input ports

input: *mut *mut MMAL_PORT_T

< Array of input ports

output_num: u32

< Number of output ports

output: *mut *mut MMAL_PORT_T

< Array of output ports

clock_num: u32

< Number of clock ports

clock: *mut *mut MMAL_PORT_T

< Array of clock ports

port_num: u32

< Total number of ports

port: *mut *mut MMAL_PORT_T

< Array of all the ports (control/input/output/clock)

id: u32

Uniquely identifies the component's instance within the MMAL context / process. For debugging.

Trait Implementations

impl Clone for MMAL_COMPONENT_T[src]

impl Copy for MMAL_COMPONENT_T[src]

impl Debug for MMAL_COMPONENT_T[src]

Auto Trait Implementations

impl !Send for MMAL_COMPONENT_T

impl Unpin for MMAL_COMPONENT_T

impl !Sync for MMAL_COMPONENT_T

impl UnwindSafe for MMAL_COMPONENT_T

impl RefUnwindSafe for MMAL_COMPONENT_T

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

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.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]