Skip to main content

ResponseMessage

Enum ResponseMessage 

Source
pub enum ResponseMessage {
Show 40 variants OpenSecureChannel(Box<OpenSecureChannelResponse>), CloseSecureChannel(Box<CloseSecureChannelResponse>), GetEndpoints(Box<GetEndpointsResponse>), FindServers(Box<FindServersResponse>), FindServersOnNetwork(Box<FindServersOnNetworkResponse>), RegisterServer(Box<RegisterServerResponse>), RegisterServer2(Box<RegisterServer2Response>), CreateSession(Box<CreateSessionResponse>), CloseSession(Box<CloseSessionResponse>), Cancel(Box<CancelResponse>), ActivateSession(Box<ActivateSessionResponse>), AddNodes(Box<AddNodesResponse>), AddReferences(Box<AddReferencesResponse>), DeleteNodes(Box<DeleteNodesResponse>), DeleteReferences(Box<DeleteReferencesResponse>), CreateMonitoredItems(Box<CreateMonitoredItemsResponse>), ModifyMonitoredItems(Box<ModifyMonitoredItemsResponse>), DeleteMonitoredItems(Box<DeleteMonitoredItemsResponse>), SetMonitoringMode(Box<SetMonitoringModeResponse>), SetTriggering(Box<SetTriggeringResponse>), CreateSubscription(Box<CreateSubscriptionResponse>), ModifySubscription(Box<ModifySubscriptionResponse>), DeleteSubscriptions(Box<DeleteSubscriptionsResponse>), TransferSubscriptions(Box<TransferSubscriptionsResponse>), SetPublishingMode(Box<SetPublishingModeResponse>), QueryFirst(Box<QueryFirstResponse>), QueryNext(Box<QueryNextResponse>), Browse(Box<BrowseResponse>), BrowseNext(Box<BrowseNextResponse>), Publish(Box<PublishResponse>), Republish(Box<RepublishResponse>), TranslateBrowsePathsToNodeIds(Box<TranslateBrowsePathsToNodeIdsResponse>), RegisterNodes(Box<RegisterNodesResponse>), UnregisterNodes(Box<UnregisterNodesResponse>), Read(Box<ReadResponse>), HistoryRead(Box<HistoryReadResponse>), Write(Box<WriteResponse>), HistoryUpdate(Box<HistoryUpdateResponse>), Call(Box<CallResponse>), ServiceFault(Box<ServiceFault>),
}
Expand description

Enum of all possible response service messages.

Variants§

§

OpenSecureChannel(Box<OpenSecureChannelResponse>)

OpenSecureChannel

§

CloseSecureChannel(Box<CloseSecureChannelResponse>)

CloseSecureChannel

§

GetEndpoints(Box<GetEndpointsResponse>)

GetEndpoints

§

FindServers(Box<FindServersResponse>)

FindServers

§

FindServersOnNetwork(Box<FindServersOnNetworkResponse>)

FindServersOnNetwork

§

RegisterServer(Box<RegisterServerResponse>)

RegisterServer

§

RegisterServer2(Box<RegisterServer2Response>)

RegisterServer2

§

CreateSession(Box<CreateSessionResponse>)

CreateSession

§

CloseSession(Box<CloseSessionResponse>)

CloseSession

§

Cancel(Box<CancelResponse>)

Cancel

§

ActivateSession(Box<ActivateSessionResponse>)

ActivateSession

§

AddNodes(Box<AddNodesResponse>)

AddNodes

§

AddReferences(Box<AddReferencesResponse>)

AddReferences

§

DeleteNodes(Box<DeleteNodesResponse>)

DeleteNodes

§

DeleteReferences(Box<DeleteReferencesResponse>)

DeleteReferences

§

CreateMonitoredItems(Box<CreateMonitoredItemsResponse>)

CreateMonitoredItems

§

ModifyMonitoredItems(Box<ModifyMonitoredItemsResponse>)

ModifyMonitoredItems

§

DeleteMonitoredItems(Box<DeleteMonitoredItemsResponse>)

DeleteMonitoredItems

§

SetMonitoringMode(Box<SetMonitoringModeResponse>)

SetMonitoringMode

§

SetTriggering(Box<SetTriggeringResponse>)

SetTriggering

§

CreateSubscription(Box<CreateSubscriptionResponse>)

CreateSubscription

§

ModifySubscription(Box<ModifySubscriptionResponse>)

ModifySubscription

§

DeleteSubscriptions(Box<DeleteSubscriptionsResponse>)

DeleteSubscriptions

§

TransferSubscriptions(Box<TransferSubscriptionsResponse>)

TransferSubscriptions

§

SetPublishingMode(Box<SetPublishingModeResponse>)

SetPublishingMode

§

QueryFirst(Box<QueryFirstResponse>)

QueryFirst

§

QueryNext(Box<QueryNextResponse>)

QueryNext

§

Browse(Box<BrowseResponse>)

Browse

§

BrowseNext(Box<BrowseNextResponse>)

BrowseNext

§

Publish(Box<PublishResponse>)

Publish

§

Republish(Box<RepublishResponse>)

Republish

§

TranslateBrowsePathsToNodeIds(Box<TranslateBrowsePathsToNodeIdsResponse>)

TranslateBrowsePathsToNodeIds

§

RegisterNodes(Box<RegisterNodesResponse>)

RegisterNodes

§

UnregisterNodes(Box<UnregisterNodesResponse>)

UnregisterNodes

§

Read(Box<ReadResponse>)

Read

§

HistoryRead(Box<HistoryReadResponse>)

HistoryRead

§

Write(Box<WriteResponse>)

Write

§

HistoryUpdate(Box<HistoryUpdateResponse>)

HistoryUpdate

§

Call(Box<CallResponse>)

Call

§

ServiceFault(Box<ServiceFault>)

ServiceFault

Implementations§

Source§

impl ResponseMessage

Source

pub fn response_header(&self) -> &ResponseHeader

Get the response header.

Source

pub fn type_name(&self) -> &'static str

Get the name of the request variant, for debugging and logging.

Trait Implementations§

Source§

impl BinaryEncodable for ResponseMessage

Source§

fn byte_len(&self, ctx: &Context<'_>) -> 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.
Source§

fn encode<S: Write + ?Sized>( &self, stream: &mut S, ctx: &Context<'_>, ) -> EncodingResult<()>

Encodes the instance to the write stream.
Source§

fn override_encoding(&self) -> Option<BuiltInDataEncoding>

Override the extension object encoding used for this type. This only makes sense if the type can only ever be encoded using a single built-in encoding.
Source§

fn encode_to_vec(&self, ctx: &Context<'_>) -> Vec<u8>

Convenience method for encoding a message straight into an array of bytes. It is preferable to reuse buffers than to call this so it should be reserved for tests and trivial code.
Source§

impl Clone for ResponseMessage

Source§

fn clone(&self) -> ResponseMessage

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ResponseMessage

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<ActivateSessionResponse> for ResponseMessage

Source§

fn from(value: ActivateSessionResponse) -> Self

Converts to this type from the input type.
Source§

impl From<AddNodesResponse> for ResponseMessage

Source§

fn from(value: AddNodesResponse) -> Self

Converts to this type from the input type.
Source§

impl From<AddReferencesResponse> for ResponseMessage

Source§

fn from(value: AddReferencesResponse) -> Self

Converts to this type from the input type.
Source§

impl From<BrowseNextResponse> for ResponseMessage

Source§

fn from(value: BrowseNextResponse) -> Self

Converts to this type from the input type.
Source§

impl From<BrowseResponse> for ResponseMessage

Source§

fn from(value: BrowseResponse) -> Self

Converts to this type from the input type.
Source§

impl From<CallResponse> for ResponseMessage

Source§

fn from(value: CallResponse) -> Self

Converts to this type from the input type.
Source§

impl From<CancelResponse> for ResponseMessage

Source§

fn from(value: CancelResponse) -> Self

Converts to this type from the input type.
Source§

impl From<CloseSecureChannelResponse> for ResponseMessage

Source§

fn from(value: CloseSecureChannelResponse) -> Self

Converts to this type from the input type.
Source§

impl From<CloseSessionResponse> for ResponseMessage

Source§

fn from(value: CloseSessionResponse) -> Self

Converts to this type from the input type.
Source§

impl From<CreateMonitoredItemsResponse> for ResponseMessage

Source§

fn from(value: CreateMonitoredItemsResponse) -> Self

Converts to this type from the input type.
Source§

impl From<CreateSessionResponse> for ResponseMessage

Source§

fn from(value: CreateSessionResponse) -> Self

Converts to this type from the input type.
Source§

impl From<CreateSubscriptionResponse> for ResponseMessage

Source§

fn from(value: CreateSubscriptionResponse) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteMonitoredItemsResponse> for ResponseMessage

Source§

fn from(value: DeleteMonitoredItemsResponse) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteNodesResponse> for ResponseMessage

Source§

fn from(value: DeleteNodesResponse) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteReferencesResponse> for ResponseMessage

Source§

fn from(value: DeleteReferencesResponse) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteSubscriptionsResponse> for ResponseMessage

Source§

fn from(value: DeleteSubscriptionsResponse) -> Self

Converts to this type from the input type.
Source§

impl From<FindServersOnNetworkResponse> for ResponseMessage

Source§

fn from(value: FindServersOnNetworkResponse) -> Self

Converts to this type from the input type.
Source§

impl From<FindServersResponse> for ResponseMessage

Source§

fn from(value: FindServersResponse) -> Self

Converts to this type from the input type.
Source§

impl From<GetEndpointsResponse> for ResponseMessage

Source§

fn from(value: GetEndpointsResponse) -> Self

Converts to this type from the input type.
Source§

impl From<HistoryReadResponse> for ResponseMessage

Source§

fn from(value: HistoryReadResponse) -> Self

Converts to this type from the input type.
Source§

impl From<HistoryUpdateResponse> for ResponseMessage

Source§

fn from(value: HistoryUpdateResponse) -> Self

Converts to this type from the input type.
Source§

impl From<ModifyMonitoredItemsResponse> for ResponseMessage

Source§

fn from(value: ModifyMonitoredItemsResponse) -> Self

Converts to this type from the input type.
Source§

impl From<ModifySubscriptionResponse> for ResponseMessage

Source§

fn from(value: ModifySubscriptionResponse) -> Self

Converts to this type from the input type.
Source§

impl From<OpenSecureChannelResponse> for ResponseMessage

Source§

fn from(value: OpenSecureChannelResponse) -> Self

Converts to this type from the input type.
Source§

impl From<PublishResponse> for ResponseMessage

Source§

fn from(value: PublishResponse) -> Self

Converts to this type from the input type.
Source§

impl From<QueryFirstResponse> for ResponseMessage

Source§

fn from(value: QueryFirstResponse) -> Self

Converts to this type from the input type.
Source§

impl From<QueryNextResponse> for ResponseMessage

Source§

fn from(value: QueryNextResponse) -> Self

Converts to this type from the input type.
Source§

impl From<ReadResponse> for ResponseMessage

Source§

fn from(value: ReadResponse) -> Self

Converts to this type from the input type.
Source§

impl From<RegisterNodesResponse> for ResponseMessage

Source§

fn from(value: RegisterNodesResponse) -> Self

Converts to this type from the input type.
Source§

impl From<RegisterServer2Response> for ResponseMessage

Source§

fn from(value: RegisterServer2Response) -> Self

Converts to this type from the input type.
Source§

impl From<RegisterServerResponse> for ResponseMessage

Source§

fn from(value: RegisterServerResponse) -> Self

Converts to this type from the input type.
Source§

impl From<RepublishResponse> for ResponseMessage

Source§

fn from(value: RepublishResponse) -> Self

Converts to this type from the input type.
Source§

impl From<ServiceFault> for ResponseMessage

Source§

fn from(value: ServiceFault) -> Self

Converts to this type from the input type.
Source§

impl From<SetMonitoringModeResponse> for ResponseMessage

Source§

fn from(value: SetMonitoringModeResponse) -> Self

Converts to this type from the input type.
Source§

impl From<SetPublishingModeResponse> for ResponseMessage

Source§

fn from(value: SetPublishingModeResponse) -> Self

Converts to this type from the input type.
Source§

impl From<SetTriggeringResponse> for ResponseMessage

Source§

fn from(value: SetTriggeringResponse) -> Self

Converts to this type from the input type.
Source§

impl From<TransferSubscriptionsResponse> for ResponseMessage

Source§

fn from(value: TransferSubscriptionsResponse) -> Self

Converts to this type from the input type.
Source§

impl From<TranslateBrowsePathsToNodeIdsResponse> for ResponseMessage

Source§

fn from(value: TranslateBrowsePathsToNodeIdsResponse) -> Self

Converts to this type from the input type.
Source§

impl From<UnregisterNodesResponse> for ResponseMessage

Source§

fn from(value: UnregisterNodesResponse) -> Self

Converts to this type from the input type.
Source§

impl From<WriteResponse> for ResponseMessage

Source§

fn from(value: WriteResponse) -> Self

Converts to this type from the input type.
Source§

impl Message for ResponseMessage

Source§

fn request_handle(&self) -> u32

Get the message request handle.
Source§

fn decode_by_object_id<S: Read>( stream: &mut S, object_id: ObjectId, ctx: &Context<'_>, ) -> EncodingResult<Self>

Decode the message by object ID.
Source§

fn type_id(&self) -> NodeId

Get the type ID of the message.
Source§

impl MessageType for ResponseMessage

Source§

fn message_type(&self) -> MessageChunkType

Get the message chunk type.
Source§

impl PartialEq for ResponseMessage

Source§

fn eq(&self, other: &ResponseMessage) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for ResponseMessage

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more