Struct opcua_server::util::PollingAction
source · [−]pub struct PollingAction {}
Expand description
This is a convenience for a polling action. This struct starts a repeating timer that calls an action repeatedly.
Implementations
sourceimpl PollingAction
impl PollingAction
pub fn spawn<F>(
server_state: Arc<RwLock<ServerState>>,
interval_ms: u64,
action: F
) -> PollingAction where
F: 'static + Fn() + Send,
Auto Trait Implementations
impl RefUnwindSafe for PollingAction
impl Send for PollingAction
impl Sync for PollingAction
impl Unpin for PollingAction
impl UnwindSafe for PollingAction
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more