Struct opcua_core::prelude::service_types::LiteralOperand
source · [−]pub struct LiteralOperand {
pub value: Variant,
}
Fields
value: Variant
Trait Implementations
sourceimpl BinaryEncoder<LiteralOperand> for LiteralOperand
impl BinaryEncoder<LiteralOperand> for LiteralOperand
sourcefn byte_len(&self) -> usize
fn byte_len(&self) -> usize
Returns the exact byte length of the structure as it would be if encode
were called.
This may be called prior to writing to ensure the correct amount of space is available. Read more
sourcefn encode<S>(&self, stream: &mut S) -> Result<usize, StatusCode> where
S: Write,
fn encode<S>(&self, stream: &mut S) -> Result<usize, StatusCode> where
S: Write,
Encodes the instance to the write stream.
sourcefn decode<S>(
stream: &mut S,
decoding_options: &DecodingOptions
) -> Result<LiteralOperand, StatusCode> where
S: Read,
fn decode<S>(
stream: &mut S,
decoding_options: &DecodingOptions
) -> Result<LiteralOperand, StatusCode> where
S: Read,
Decodes an instance from the read stream. The decoding options contains restrictions set by
the server / client on the length of strings, arrays etc. If these limits are exceeded the
implementation should return with a BadDecodingError
as soon as possible. Read more
fn encode_to_vec(&self) -> Vec<u8, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
sourceimpl Clone for LiteralOperand
impl Clone for LiteralOperand
sourcefn clone(&self) -> LiteralOperand
fn clone(&self) -> LiteralOperand
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for LiteralOperand
impl Debug for LiteralOperand
sourceimpl<'_> From<&'_ str> for LiteralOperand
impl<'_> From<&'_ str> for LiteralOperand
sourcefn from(v: &str) -> LiteralOperand
fn from(v: &str) -> LiteralOperand
Converts to this type from the input type.
sourceimpl From<()> for LiteralOperand
impl From<()> for LiteralOperand
sourcefn from(_v: ()) -> LiteralOperand
fn from(_v: ()) -> LiteralOperand
Converts to this type from the input type.
sourceimpl From<LiteralOperand> for Operand
impl From<LiteralOperand> for Operand
sourcefn from(v: LiteralOperand) -> Operand
fn from(v: LiteralOperand) -> Operand
Converts to this type from the input type.
sourceimpl From<Variant> for LiteralOperand
impl From<Variant> for LiteralOperand
sourcefn from(v: Variant) -> LiteralOperand
fn from(v: Variant) -> LiteralOperand
Converts to this type from the input type.
sourceimpl From<bool> for LiteralOperand
impl From<bool> for LiteralOperand
sourcefn from(v: bool) -> LiteralOperand
fn from(v: bool) -> LiteralOperand
Converts to this type from the input type.
sourceimpl From<f32> for LiteralOperand
impl From<f32> for LiteralOperand
sourcefn from(v: f32) -> LiteralOperand
fn from(v: f32) -> LiteralOperand
Converts to this type from the input type.
sourceimpl From<f64> for LiteralOperand
impl From<f64> for LiteralOperand
sourcefn from(v: f64) -> LiteralOperand
fn from(v: f64) -> LiteralOperand
Converts to this type from the input type.
sourceimpl From<i16> for LiteralOperand
impl From<i16> for LiteralOperand
sourcefn from(v: i16) -> LiteralOperand
fn from(v: i16) -> LiteralOperand
Converts to this type from the input type.
sourceimpl From<i32> for LiteralOperand
impl From<i32> for LiteralOperand
sourcefn from(v: i32) -> LiteralOperand
fn from(v: i32) -> LiteralOperand
Converts to this type from the input type.
sourceimpl From<i8> for LiteralOperand
impl From<i8> for LiteralOperand
sourcefn from(v: i8) -> LiteralOperand
fn from(v: i8) -> LiteralOperand
Converts to this type from the input type.
sourceimpl From<u16> for LiteralOperand
impl From<u16> for LiteralOperand
sourcefn from(v: u16) -> LiteralOperand
fn from(v: u16) -> LiteralOperand
Converts to this type from the input type.
sourceimpl From<u32> for LiteralOperand
impl From<u32> for LiteralOperand
sourcefn from(v: u32) -> LiteralOperand
fn from(v: u32) -> LiteralOperand
Converts to this type from the input type.
sourceimpl From<u8> for LiteralOperand
impl From<u8> for LiteralOperand
sourcefn from(v: u8) -> LiteralOperand
fn from(v: u8) -> LiteralOperand
Converts to this type from the input type.
sourceimpl PartialEq<LiteralOperand> for LiteralOperand
impl PartialEq<LiteralOperand> for LiteralOperand
sourcefn eq(&self, other: &LiteralOperand) -> bool
fn eq(&self, other: &LiteralOperand) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &LiteralOperand) -> bool
fn ne(&self, other: &LiteralOperand) -> bool
This method tests for !=
.
impl StructuralPartialEq for LiteralOperand
Auto Trait Implementations
impl RefUnwindSafe for LiteralOperand
impl Send for LiteralOperand
impl Sync for LiteralOperand
impl Unpin for LiteralOperand
impl UnwindSafe for LiteralOperand
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more