pub struct DataValue<T> { /* private fields */ }Expand description
Typed variant of ua::DataValue.
Implementations§
Source§impl<T: DataType> DataValue<T>
impl<T: DataType> DataValue<T>
pub const fn value(&self) -> &T
pub fn into_value(self) -> T
pub const fn source_timestamp(&self) -> Option<&DateTime>
pub const fn server_timestamp(&self) -> Option<&DateTime>
pub const fn source_picoseconds(&self) -> Option<u16>
pub const fn server_picoseconds(&self) -> Option<u16>
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for DataValue<T>where
T: Freeze,
impl<T> RefUnwindSafe for DataValue<T>where
T: RefUnwindSafe,
impl<T> Send for DataValue<T>where
T: Send,
impl<T> Sync for DataValue<T>where
T: Sync,
impl<T> Unpin for DataValue<T>where
T: Unpin,
impl<T> UnwindSafe for DataValue<T>where
T: UnwindSafe,
Blanket Implementations§
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