Struct MonitoredItemBuilder

Source
pub struct MonitoredItemBuilder { /* private fields */ }

Implementations§

Source§

impl MonitoredItemBuilder

Source

pub fn new(node_ids: impl IntoIterator<Item = NodeId>) -> Self

Source

pub fn attribute_id(self, attribute_id: AttributeId) -> Self

Source

pub fn monitoring_mode(self, monitoring_mode: MonitoringMode) -> Self

Source

pub const fn sampling_interval( self, sampling_interval: Option<Duration>, ) -> Self

Sets sampling interval.

Default value is 250.0 ms.

See ua::MonitoringParameters::with_sampling_interval().

Source

pub fn filter(self, filter: impl MonitoringFilter) -> Self

Sets filter.

Default value is no filter.

See ua::MonitoringParameters::with_filter().

Source

pub const fn queue_size(self, queue_size: u32) -> Self

Sets requested size of the monitored item queue.

Default value is 1.

See ua::MonitoringParameters::with_queue_size().

Source

pub const fn discard_oldest(self, discard_oldest: bool) -> Self

Sets discard policy.

Default value is true.

See ua::MonitoringParameters::with_discard_oldest().

Source

pub async fn create( self, subscription: &AsyncSubscription, ) -> Result<Vec<Result<(MonitoredItemCreateResult, AsyncMonitoredItem)>>>

Creates monitored items.

This creates one or more new monitored items. Returns one result for each node ID.

§Errors

This fails when the entire request is not successful. Errors for individual node IDs are returned as error elements inside the resulting list.

Trait Implementations§

Source§

impl Debug for MonitoredItemBuilder

Source§

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

Formats the value using the given formatter. 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.