[−][src]Struct opcua_server::prelude::ExtensionObject
An extension object holds a serialized object identified by its node id.
Fields
node_id: NodeIdbody: ExtensionObjectEncodingImplementations
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 object_id(&self) -> Result<ObjectId, ()>[src]
Returns the object id of the thing this extension object contains, assuming the object id can be recognised from the node id.
pub fn from_encodable<N, T>(node_id: N, encodable: &T) -> ExtensionObject where
N: Into<NodeId>,
T: BinaryEncoder<T>, [src]
N: 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 encode_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]
impl Debug for ExtensionObject[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<'_> From<&'_ Operand> for ExtensionObject[src]
fn from(v: &Operand) -> ExtensionObject[src]
impl From<ExtensionObject> for Variant[src]
fn from(v: ExtensionObject) -> Variant[src]
impl From<Operand> for ExtensionObject[src]
fn from(v: Operand) -> ExtensionObject[src]
impl PartialEq<ExtensionObject> for ExtensionObject[src]
fn eq(&self, other: &ExtensionObject) -> bool[src]
fn ne(&self, other: &ExtensionObject) -> bool[src]
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 StructuralPartialEq for ExtensionObject[src]
impl<'_> TryFrom<&'_ ExtensionObject> for Operand[src]
type Error = StatusCode
The type returned in the event of a conversion error.
fn try_from(
v: &ExtensionObject
) -> Result<Operand, <Operand as TryFrom<&'_ ExtensionObject>>::Error>[src]
v: &ExtensionObject
) -> Result<Operand, <Operand as TryFrom<&'_ ExtensionObject>>::Error>
Auto Trait Implementations
impl RefUnwindSafe for ExtensionObject
impl Send for ExtensionObject
impl Sync for ExtensionObject
impl Unpin for ExtensionObject
impl UnwindSafe for ExtensionObject
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T[src]
impl<T, U> Into<U> 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, U> TryFrom<U> 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, U> TryInto<U> 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<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,