pub enum ServiceRequest {
Show 14 variants
CreateSession(CreateSessionRequest),
ActivateSession(ActivateSessionRequest),
CloseSession(CloseSessionRequest),
Read(ReadRequest),
Write(WriteRequest),
Browse(BrowseRequest),
GetEndpoints(GetEndpointsRequest),
FindServers(FindServersRequest),
CreateSubscription(CreateSubscriptionRequest),
SetPublishingMode(SetPublishingModeRequest),
CreateMonitoredItems(CreateMonitoredItemsRequest),
Publish(PublishRequest),
DeleteSubscriptions(DeleteSubscriptionsRequest),
Call(CallRequest),
}Expand description
Any decodable service request.
Variants§
CreateSession(CreateSessionRequest)
CreateSession.
ActivateSession(ActivateSessionRequest)
ActivateSession.
CloseSession(CloseSessionRequest)
CloseSession.
Read(ReadRequest)
Read.
Write(WriteRequest)
Write.
Browse(BrowseRequest)
Browse.
GetEndpoints(GetEndpointsRequest)
GetEndpoints.
FindServers(FindServersRequest)
FindServers.
CreateSubscription(CreateSubscriptionRequest)
CreateSubscription.
SetPublishingMode(SetPublishingModeRequest)
SetPublishingMode.
CreateMonitoredItems(CreateMonitoredItemsRequest)
CreateMonitoredItems.
Publish(PublishRequest)
Publish.
DeleteSubscriptions(DeleteSubscriptionsRequest)
DeleteSubscriptions.
Call(CallRequest)
Call.
Implementations§
Source§impl ServiceRequest
impl ServiceRequest
Sourcepub fn decode(body: &[u8]) -> Result<Self, DecodeError>
pub fn decode(body: &[u8]) -> Result<Self, DecodeError>
Decodes a request body, dispatching on the leading TypeId.
§Errors
DecodeError on truncation or an unsupported service type.
Trait Implementations§
Source§impl Clone for ServiceRequest
impl Clone for ServiceRequest
Source§fn clone(&self) -> ServiceRequest
fn clone(&self) -> ServiceRequest
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 ServiceRequest
impl Debug for ServiceRequest
Source§impl PartialEq for ServiceRequest
impl PartialEq for ServiceRequest
Source§fn eq(&self, other: &ServiceRequest) -> bool
fn eq(&self, other: &ServiceRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ServiceRequest
Auto Trait Implementations§
impl Freeze for ServiceRequest
impl RefUnwindSafe for ServiceRequest
impl Send for ServiceRequest
impl Sync for ServiceRequest
impl Unpin for ServiceRequest
impl UnsafeUnpin for ServiceRequest
impl UnwindSafe for ServiceRequest
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