pub enum ServiceResponse {
Show 14 variants
CreateSession(CreateSessionResponse),
ActivateSession(ActivateSessionResponse),
CloseSession(CloseSessionResponse),
Read(ReadResponse),
Write(WriteResponse),
Browse(BrowseResponse),
GetEndpoints(GetEndpointsResponse),
FindServers(FindServersResponse),
CreateSubscription(CreateSubscriptionResponse),
SetPublishingMode(SetPublishingModeResponse),
CreateMonitoredItems(CreateMonitoredItemsResponse),
Publish(PublishResponse),
DeleteSubscriptions(DeleteSubscriptionsResponse),
Call(CallResponse),
}Expand description
Any decodable service response.
Variants§
CreateSession(CreateSessionResponse)
CreateSession.
ActivateSession(ActivateSessionResponse)
ActivateSession.
CloseSession(CloseSessionResponse)
CloseSession.
Read(ReadResponse)
Read.
Write(WriteResponse)
Write.
Browse(BrowseResponse)
Browse.
GetEndpoints(GetEndpointsResponse)
GetEndpoints.
FindServers(FindServersResponse)
FindServers.
CreateSubscription(CreateSubscriptionResponse)
CreateSubscription.
SetPublishingMode(SetPublishingModeResponse)
SetPublishingMode.
CreateMonitoredItems(CreateMonitoredItemsResponse)
CreateMonitoredItems.
Publish(PublishResponse)
Publish.
DeleteSubscriptions(DeleteSubscriptionsResponse)
DeleteSubscriptions.
Call(CallResponse)
Call.
Implementations§
Source§impl ServiceResponse
impl ServiceResponse
Sourcepub fn decode(body: &[u8]) -> Result<Self, DecodeError>
pub fn decode(body: &[u8]) -> Result<Self, DecodeError>
Decodes a response body, dispatching on the leading TypeId.
§Errors
DecodeError on truncation or an unsupported response type.
Trait Implementations§
Source§impl Clone for ServiceResponse
impl Clone for ServiceResponse
Source§fn clone(&self) -> ServiceResponse
fn clone(&self) -> ServiceResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ServiceResponse
impl Debug for ServiceResponse
Source§impl PartialEq for ServiceResponse
impl PartialEq for ServiceResponse
Source§fn eq(&self, other: &ServiceResponse) -> bool
fn eq(&self, other: &ServiceResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ServiceResponse
Auto Trait Implementations§
impl Freeze for ServiceResponse
impl RefUnwindSafe for ServiceResponse
impl Send for ServiceResponse
impl Sync for ServiceResponse
impl Unpin for ServiceResponse
impl UnsafeUnpin for ServiceResponse
impl UnwindSafe for ServiceResponse
Blanket Implementations§
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