UA_EventLoop

Struct UA_EventLoop 

Source
#[repr(C)]
pub struct UA_EventLoop {
Show 22 fields pub logger: *const UA_Logger, pub params: *mut UA_KeyValueMap, pub state: UA_EventLoopState, pub start: Option<unsafe extern "C" fn(el: *mut UA_EventLoop) -> UA_StatusCode>, pub stop: Option<unsafe extern "C" fn(el: *mut UA_EventLoop)>, pub run: Option<unsafe extern "C" fn(el: *mut UA_EventLoop, timeout: UA_UInt32) -> UA_StatusCode>, pub free: Option<unsafe extern "C" fn(el: *mut UA_EventLoop) -> UA_StatusCode>, pub dateTime_now: Option<unsafe extern "C" fn(el: *mut UA_EventLoop) -> UA_DateTime>, pub dateTime_nowMonotonic: Option<unsafe extern "C" fn(el: *mut UA_EventLoop) -> UA_DateTime>, pub dateTime_localTimeUtcOffset: Option<unsafe extern "C" fn(el: *mut UA_EventLoop) -> UA_Int64>, pub nextCyclicTime: Option<unsafe extern "C" fn(el: *mut UA_EventLoop) -> UA_DateTime>, pub addCyclicCallback: Option<unsafe extern "C" fn(el: *mut UA_EventLoop, cb: UA_Callback, application: *mut c_void, data: *mut c_void, interval_ms: UA_Double, baseTime: *mut UA_DateTime, timerPolicy: UA_TimerPolicy, callbackId: *mut UA_UInt64) -> UA_StatusCode>, pub modifyCyclicCallback: Option<unsafe extern "C" fn(el: *mut UA_EventLoop, callbackId: UA_UInt64, interval_ms: UA_Double, baseTime: *mut UA_DateTime, timerPolicy: UA_TimerPolicy) -> UA_StatusCode>, pub removeCyclicCallback: Option<unsafe extern "C" fn(el: *mut UA_EventLoop, callbackId: UA_UInt64)>, pub addTimedCallback: Option<unsafe extern "C" fn(el: *mut UA_EventLoop, cb: UA_Callback, application: *mut c_void, data: *mut c_void, date: UA_DateTime, callbackId: *mut UA_UInt64) -> UA_StatusCode>, pub addDelayedCallback: Option<unsafe extern "C" fn(el: *mut UA_EventLoop, dc: *mut UA_DelayedCallback)>, pub removeDelayedCallback: Option<unsafe extern "C" fn(el: *mut UA_EventLoop, dc: *mut UA_DelayedCallback)>, pub eventSources: *mut UA_EventSource, pub registerEventSource: Option<unsafe extern "C" fn(el: *mut UA_EventLoop, es: *mut UA_EventSource) -> UA_StatusCode>, pub deregisterEventSource: Option<unsafe extern "C" fn(el: *mut UA_EventLoop, es: *mut UA_EventSource) -> UA_StatusCode>, pub lock: Option<unsafe extern "C" fn(el: *mut UA_EventLoop)>, pub unlock: Option<unsafe extern "C" fn(el: *mut UA_EventLoop)>,
}

Fields§

§logger: *const UA_Logger§params: *mut UA_KeyValueMap§state: UA_EventLoopState§start: Option<unsafe extern "C" fn(el: *mut UA_EventLoop) -> UA_StatusCode>§stop: Option<unsafe extern "C" fn(el: *mut UA_EventLoop)>§run: Option<unsafe extern "C" fn(el: *mut UA_EventLoop, timeout: UA_UInt32) -> UA_StatusCode>§free: Option<unsafe extern "C" fn(el: *mut UA_EventLoop) -> UA_StatusCode>§dateTime_now: Option<unsafe extern "C" fn(el: *mut UA_EventLoop) -> UA_DateTime>§dateTime_nowMonotonic: Option<unsafe extern "C" fn(el: *mut UA_EventLoop) -> UA_DateTime>§dateTime_localTimeUtcOffset: Option<unsafe extern "C" fn(el: *mut UA_EventLoop) -> UA_Int64>§nextCyclicTime: Option<unsafe extern "C" fn(el: *mut UA_EventLoop) -> UA_DateTime>§addCyclicCallback: Option<unsafe extern "C" fn(el: *mut UA_EventLoop, cb: UA_Callback, application: *mut c_void, data: *mut c_void, interval_ms: UA_Double, baseTime: *mut UA_DateTime, timerPolicy: UA_TimerPolicy, callbackId: *mut UA_UInt64) -> UA_StatusCode>§modifyCyclicCallback: Option<unsafe extern "C" fn(el: *mut UA_EventLoop, callbackId: UA_UInt64, interval_ms: UA_Double, baseTime: *mut UA_DateTime, timerPolicy: UA_TimerPolicy) -> UA_StatusCode>§removeCyclicCallback: Option<unsafe extern "C" fn(el: *mut UA_EventLoop, callbackId: UA_UInt64)>§addTimedCallback: Option<unsafe extern "C" fn(el: *mut UA_EventLoop, cb: UA_Callback, application: *mut c_void, data: *mut c_void, date: UA_DateTime, callbackId: *mut UA_UInt64) -> UA_StatusCode>§addDelayedCallback: Option<unsafe extern "C" fn(el: *mut UA_EventLoop, dc: *mut UA_DelayedCallback)>§removeDelayedCallback: Option<unsafe extern "C" fn(el: *mut UA_EventLoop, dc: *mut UA_DelayedCallback)>§eventSources: *mut UA_EventSource§registerEventSource: Option<unsafe extern "C" fn(el: *mut UA_EventLoop, es: *mut UA_EventSource) -> UA_StatusCode>§deregisterEventSource: Option<unsafe extern "C" fn(el: *mut UA_EventLoop, es: *mut UA_EventSource) -> UA_StatusCode>§lock: Option<unsafe extern "C" fn(el: *mut UA_EventLoop)>§unlock: Option<unsafe extern "C" fn(el: *mut UA_EventLoop)>

Trait Implementations§

Source§

impl Debug for UA_EventLoop

Source§

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

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

impl Default for UA_EventLoop

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

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.