open62541_sys

Struct UA_EventLoop

source
#[repr(C)]
pub struct UA_EventLoop {
Show 20 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>,
}

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>

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.