pub struct Sample<T> {
pub status: u32,
pub value: Option<T>,
pub source_timestamp: Option<SampleTimestamp>,
pub server_timestamp: Option<SampleTimestamp>,
}Expand description
One typed Value attribute, with its per-node status and optional source and server timestamps.
Fields§
§status: u32OPC UA StatusCode, including subcodes and flags. An omitted status means Good (0).
value: Option<T>A scalar of the requested wire type, present only for Good severity and a non-null value.
source_timestamp: Option<SampleTimestamp>Source timestamp reported by the server.
server_timestamp: Option<SampleTimestamp>Server timestamp reported by the server.
Implementations§
Trait Implementations§
impl<T: PartialEq> StructuralPartialEq for Sample<T>
Auto Trait Implementations§
impl<T> Forget for Sample<T>
impl<T> Freeze for Sample<T>
impl<T> Move for Sample<T>
impl<T> RefUnwindSafe for Sample<T>where
Option<T>: RefUnwindSafe,
impl<T> Send for Sample<T>
impl<T> Sync for Sample<T>
impl<T> Unpin for Sample<T>
impl<T> UnsafeUnpin for Sample<T>where
Option<T>: UnsafeUnpin,
impl<T> UnwindSafe for Sample<T>where
Option<T>: UnwindSafe,
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more