[−][src]Struct opcua_server::subscriptions::subscription::Subscription
Implementations
impl Subscription[src]
pub fn new(
diagnostics: Arc<RwLock<ServerDiagnostics>>,
subscription_id: u32,
publishing_enabled: bool,
publishing_interval: Duration,
lifetime_counter: u32,
keep_alive_counter: u32,
priority: u8
) -> Subscription[src]
diagnostics: Arc<RwLock<ServerDiagnostics>>,
subscription_id: u32,
publishing_enabled: bool,
publishing_interval: Duration,
lifetime_counter: u32,
keep_alive_counter: u32,
priority: u8
) -> Subscription
pub fn monitored_items_len(&self) -> usize[src]
pub fn create_monitored_items(
&mut self,
address_space: &AddressSpace,
now: &DateTimeUtc,
timestamps_to_return: TimestampsToReturn,
items_to_create: &[MonitoredItemCreateRequest],
max_monitored_items_per_sub: usize
) -> Vec<MonitoredItemCreateResult>[src]
&mut self,
address_space: &AddressSpace,
now: &DateTimeUtc,
timestamps_to_return: TimestampsToReturn,
items_to_create: &[MonitoredItemCreateRequest],
max_monitored_items_per_sub: usize
) -> Vec<MonitoredItemCreateResult>
Creates monitored items on the specified subscription, returning the creation results
pub fn modify_monitored_items(
&mut self,
address_space: &AddressSpace,
timestamps_to_return: TimestampsToReturn,
items_to_modify: &[MonitoredItemModifyRequest]
) -> Vec<MonitoredItemModifyResult>[src]
&mut self,
address_space: &AddressSpace,
timestamps_to_return: TimestampsToReturn,
items_to_modify: &[MonitoredItemModifyRequest]
) -> Vec<MonitoredItemModifyResult>
Modify the specified monitored items, returning a result for each
pub fn set_monitoring_mode(
&mut self,
monitored_item_id: u32,
monitoring_mode: MonitoringMode
) -> StatusCode[src]
&mut self,
monitored_item_id: u32,
monitoring_mode: MonitoringMode
) -> StatusCode
Sets the monitoring mode on one monitored item
pub fn delete_monitored_items(
&mut self,
items_to_delete: &[u32]
) -> Vec<StatusCode>[src]
&mut self,
items_to_delete: &[u32]
) -> Vec<StatusCode>
Delete the specified monitored items (by item id), returning a status code for each
pub fn get_handles(&self) -> (Vec<u32>, Vec<u32>)[src]
pub fn set_resend_data(&mut self)[src]
Sets the resend data flag which means the next publish request will receive the latest value of every monitored item whether it has changed in this cycle or not.
pub fn reset_keep_alive_counter(&mut self)[src]
Reset the keep-alive counter to the maximum keep-alive count of the Subscription. The maximum keep-alive count is set by the Client when the Subscription is created and may be modified using the ModifySubscription Service
pub fn reset_lifetime_counter(&mut self)[src]
Reset the lifetime counter to the value specified for the life time of the subscription in the create subscription service
pub fn start_publishing_timer(&mut self)[src]
Start or restart the publishing timer and decrement the LifetimeCounter Variable.
pub fn subscription_id(&self) -> u32[src]
pub fn lifetime_counter(&self) -> u32[src]
pub fn keep_alive_counter(&self) -> u32[src]
pub fn message_sent(&self) -> bool[src]
pub fn publishing_interval(&self) -> Duration[src]
pub fn max_keep_alive_count(&self) -> u32[src]
pub fn max_lifetime_count(&self) -> u32[src]
pub fn priority(&self) -> u8[src]
Trait Implementations
impl Clone for Subscription[src]
fn clone(&self) -> Subscription[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for Subscription[src]
impl Drop for Subscription[src]
impl Serialize for Subscription[src]
Auto Trait Implementations
impl RefUnwindSafe for Subscription
impl Send for Subscription
impl Sync for Subscription
impl Unpin for Subscription
impl UnwindSafe for Subscription
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,