[][src]Struct lv2_sys::LV2_Log_Log

#[repr(C)]pub struct LV2_Log_Log {
    pub handle: LV2_Log_Handle,
    pub printf: Option<unsafe extern "C" fn(handle: LV2_Log_Handle, type_: LV2_URID, fmt: *const c_char, ...) -> c_int>,
    pub vprintf: Option<unsafe extern "C" fn(handle: LV2_Log_Handle, type_: LV2_URID, fmt: *const c_char, ap: *mut __va_list_tag) -> c_int>,
}

Log feature (LV2_LOG__log)

Fields

handle: LV2_Log_Handle

Opaque pointer to host data.

This MUST be passed to methods in this struct whenever they are called. Otherwise, it must not be interpreted in any way.

printf: Option<unsafe extern "C" fn(handle: LV2_Log_Handle, type_: LV2_URID, fmt: *const c_char, ...) -> c_int>

Log a message, passing format parameters directly.

The API of this function matches that of the standard C printf function, except for the addition of the first two parameters. This function may be called from any non-realtime context, or from any context if type is @ref LV2_LOG__Trace.

vprintf: Option<unsafe extern "C" fn(handle: LV2_Log_Handle, type_: LV2_URID, fmt: *const c_char, ap: *mut __va_list_tag) -> c_int>

Log a message, passing format parameters in a va_list.

The API of this function matches that of the standard C vprintf function, except for the addition of the first two parameters. This function may be called from any non-realtime context, or from any context if type is @ref LV2_LOG__Trace.

Trait Implementations

impl Clone for LV2_Log_Log[src]

impl Copy for LV2_Log_Log[src]

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