pub struct ExtensionObject { /* private fields */ }Expand description
An encoded structure identified by its DataTypeEncoding NodeId. Unknown structures retain their original bytes.
Implementations§
Source§impl ExtensionObject
impl ExtensionObject
pub fn new<T>(value: T) -> Self
pub fn from_message<T>(value: T) -> Self
pub fn null() -> Self
pub fn is_null(&self) -> bool
Sourcepub fn from_binary(encoding_id: NodeId, bytes: ByteString) -> Self
pub fn from_binary(encoding_id: NodeId, bytes: ByteString) -> Self
Wrap host-encoded UA Binary for a vendor-defined DataTypeEncoding.
pub fn encoding_id(&self) -> &NodeId
pub fn inner_as<T: 'static>(&self) -> Option<&T>
Sourcepub fn opaque_body(&self) -> Option<(&ByteString, bool)>
pub fn opaque_body(&self) -> Option<(&ByteString, bool)>
Return the wire body of an unrecognized type and whether it uses XML encoding.
Trait Implementations§
Source§impl BinaryDecodable for ExtensionObject
impl BinaryDecodable for ExtensionObject
Source§impl BinaryEncodable for ExtensionObject
impl BinaryEncodable for ExtensionObject
Source§impl Clone for ExtensionObject
impl Clone for ExtensionObject
Source§impl Debug for ExtensionObject
impl Debug for ExtensionObject
Source§impl Default for ExtensionObject
impl Default for ExtensionObject
Source§impl From<ExtensionObject> for Variant
impl From<ExtensionObject> for Variant
Source§fn from(v: ExtensionObject) -> Self
fn from(v: ExtensionObject) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ExtensionObject
impl PartialEq for ExtensionObject
Source§impl VariantType for ExtensionObject
impl VariantType for ExtensionObject
Source§fn variant_type_id() -> VariantScalarTypeId
fn variant_type_id() -> VariantScalarTypeId
Built-in type identifier used when declaring a variable or array element.
Auto Trait Implementations§
impl !RefUnwindSafe for ExtensionObject
impl !UnwindSafe for ExtensionObject
impl Forget for ExtensionObject
impl Freeze for ExtensionObject
impl Move for ExtensionObject
impl Send for ExtensionObject
impl Sync for ExtensionObject
impl Unpin for ExtensionObject
impl UnsafeUnpin for ExtensionObject
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