Struct opcua_types::basic_types::ExtensionObject [] [src]

pub struct ExtensionObject {
    pub node_id: NodeId,
    pub body: ExtensionObjectEncoding,
}

A structure that contains an application specific data type that may not be recognized by the receiver. Data type ID 22

Fields

Methods

impl ExtensionObject
[src]

[src]

Creates a null extension object, i.e. one with no value or payload

[src]

[src]

[src]

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.

[src]

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 PartialEq for ExtensionObject
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Debug for ExtensionObject
[src]

[src]

Formats the value using the given formatter.

impl Clone for ExtensionObject
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl BinaryEncoder<ExtensionObject> for ExtensionObject
[src]

[src]

Returns the byte length of the structure. This calculation should be exact and as efficient as possible. Read more

[src]

Encodes the instance to the write stream.

[src]

Decodes an instance from the read stream.