[−][src]Struct opcua_server::prelude::ExtensionObject
An extension object holds a serialized object identified by its node id.
Fields
node_id: NodeIdbody: ExtensionObjectEncodingMethods
impl ExtensionObject[src]
pub fn null() -> ExtensionObject[src]
Creates a null extension object, i.e. one with no value or payload
pub fn is_null(&self) -> bool[src]
Tests for null node id.
pub fn is_empty(&self) -> bool[src]
Tests for empty body.
pub fn from_encodable<N, T>(node_id: N, encodable: &T) -> ExtensionObject where
N: 'static + Into<NodeId>,
T: BinaryEncoder<T>, [src]
N: 'static + Into<NodeId>,
T: BinaryEncoder<T>,
Creates an extension object with the specified node id and the encodable object as its payload. The body is set to a byte string containing the encoded struct.
pub fn decode_inner<T>(
&self,
decoding_limits: &DecodingLimits
) -> Result<T, StatusCode> where
T: BinaryEncoder<T>, [src]
&self,
decoding_limits: &DecodingLimits
) -> Result<T, StatusCode> where
T: BinaryEncoder<T>,
Decodes the inner content of the extension object and returns it. The node id is ignored for decoding. The caller supplies the binary encoder impl that should be used to extract the data. Errors result in a decoding error.
Trait Implementations
impl BinaryEncoder<ExtensionObject> for ExtensionObject[src]
fn byte_len(&self) -> usize[src]
fn encode<S>(&self, stream: &mut S) -> Result<usize, StatusCode> where
S: Write, [src]
S: Write,
fn decode<S>(
stream: &mut S,
decoding_limits: &DecodingLimits
) -> Result<ExtensionObject, StatusCode> where
S: Read, [src]
stream: &mut S,
decoding_limits: &DecodingLimits
) -> Result<ExtensionObject, StatusCode> where
S: Read,
fn to_vec(&self) -> Vec<u8>[src]
impl Clone for ExtensionObject[src]
fn clone(&self) -> ExtensionObject[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Serialize for ExtensionObject[src]
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer, [src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl From<ExtensionObject> for Variant[src]
fn from(v: ExtensionObject) -> Variant[src]
impl PartialEq<ExtensionObject> for ExtensionObject[src]
fn eq(&self, other: &ExtensionObject) -> bool[src]
fn ne(&self, other: &ExtensionObject) -> bool[src]
impl<'de> Deserialize<'de> for ExtensionObject[src]
fn deserialize<__D>(
__deserializer: __D
) -> Result<ExtensionObject, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>, [src]
__deserializer: __D
) -> Result<ExtensionObject, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl Debug for ExtensionObject[src]
Auto Trait Implementations
impl Send for ExtensionObject
impl Sync for ExtensionObject
Blanket Implementations
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T> From for T[src]
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>, [src]
T: Deserialize<'de>,