Skip to main content

BinaryEncodable

Trait BinaryEncodable 

Source
pub trait BinaryEncodable {
    // Required method
    fn encode<W: Write + ?Sized>(
        &self,
        out: &mut W,
        ctx: &Context<'_>,
    ) -> Result<(), StatusCode>;

    // Provided method
    fn encoded_len(&self, ctx: &Context<'_>) -> Result<usize, StatusCode> { ... }
}
Expand description

Encode a value using OPC UA Part 6 binary encoding.

Required Methods§

Source

fn encode<W: Write + ?Sized>( &self, out: &mut W, ctx: &Context<'_>, ) -> Result<(), StatusCode>

Provided Methods§

Source

fn encoded_len(&self, ctx: &Context<'_>) -> Result<usize, StatusCode>

Measure the encoded value under the same limits used when writing it.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl BinaryEncodable for bool

Source§

fn encode<W: Write + ?Sized>( &self, w: &mut W, c: &Context<'_>, ) -> Result<(), StatusCode>

Source§

impl BinaryEncodable for f32

Source§

fn encode<W: Write + ?Sized>( &self, w: &mut W, _: &Context<'_>, ) -> Result<(), StatusCode>

Source§

impl BinaryEncodable for f64

Source§

fn encode<W: Write + ?Sized>( &self, w: &mut W, _: &Context<'_>, ) -> Result<(), StatusCode>

Source§

impl BinaryEncodable for i8

Source§

fn encode<W: Write + ?Sized>( &self, w: &mut W, _: &Context<'_>, ) -> Result<(), StatusCode>

Source§

impl BinaryEncodable for i16

Source§

fn encode<W: Write + ?Sized>( &self, w: &mut W, _: &Context<'_>, ) -> Result<(), StatusCode>

Source§

impl BinaryEncodable for i32

Source§

fn encode<W: Write + ?Sized>( &self, w: &mut W, _: &Context<'_>, ) -> Result<(), StatusCode>

Source§

impl BinaryEncodable for i64

Source§

fn encode<W: Write + ?Sized>( &self, w: &mut W, _: &Context<'_>, ) -> Result<(), StatusCode>

Source§

impl BinaryEncodable for u8

Source§

fn encode<W: Write + ?Sized>( &self, w: &mut W, _: &Context<'_>, ) -> Result<(), StatusCode>

Source§

impl BinaryEncodable for u16

Source§

fn encode<W: Write + ?Sized>( &self, w: &mut W, _: &Context<'_>, ) -> Result<(), StatusCode>

Source§

impl BinaryEncodable for u32

Source§

fn encode<W: Write + ?Sized>( &self, w: &mut W, _: &Context<'_>, ) -> Result<(), StatusCode>

Source§

impl BinaryEncodable for u64

Source§

fn encode<W: Write + ?Sized>( &self, w: &mut W, _: &Context<'_>, ) -> Result<(), StatusCode>

Source§

impl<T: BinaryEncodable> BinaryEncodable for Option<Vec<T>>

Source§

fn encode<W: Write + ?Sized>( &self, w: &mut W, c: &Context<'_>, ) -> Result<(), StatusCode>

Implementors§

Source§

impl BinaryEncodable for ActivateSessionRequest

Source§

impl BinaryEncodable for ActivateSessionResponse

Source§

impl BinaryEncodable for AnonymousIdentityToken

Source§

impl BinaryEncodable for ApplicationDescription

Source§

impl BinaryEncodable for ApplicationType

Source§

impl BinaryEncodable for Argument

Source§

impl BinaryEncodable for BrowseDescription

Source§

impl BinaryEncodable for BrowseDirection

Source§

impl BinaryEncodable for BrowseNextRequest

Source§

impl BinaryEncodable for BrowseNextResponse

Source§

impl BinaryEncodable for BrowsePath

Source§

impl BinaryEncodable for BrowsePathResult

Source§

impl BinaryEncodable for BrowsePathTarget

Source§

impl BinaryEncodable for BrowseRequest

Source§

impl BinaryEncodable for BrowseResponse

Source§

impl BinaryEncodable for BrowseResult

Source§

impl BinaryEncodable for BuildInfo

Source§

impl BinaryEncodable for ByteString

Source§

impl BinaryEncodable for CallMethodRequest

Source§

impl BinaryEncodable for CallMethodResult

Source§

impl BinaryEncodable for CallRequest

Source§

impl BinaryEncodable for CallResponse

Source§

impl BinaryEncodable for ChannelSecurityToken

Source§

impl BinaryEncodable for CloseSecureChannelRequest

Source§

impl BinaryEncodable for CloseSecureChannelResponse

Source§

impl BinaryEncodable for CloseSessionRequest

Source§

impl BinaryEncodable for CloseSessionResponse

Source§

impl BinaryEncodable for ContentFilter

Source§

impl BinaryEncodable for ContentFilterElement

Source§

impl BinaryEncodable for ContentFilterElementResult

Source§

impl BinaryEncodable for ContentFilterResult

Source§

impl BinaryEncodable for CreateMonitoredItemsRequest

Source§

impl BinaryEncodable for CreateMonitoredItemsResponse

Source§

impl BinaryEncodable for CreateSessionRequest

Source§

impl BinaryEncodable for CreateSessionResponse

Source§

impl BinaryEncodable for CreateSubscriptionRequest

Source§

impl BinaryEncodable for CreateSubscriptionResponse

Source§

impl BinaryEncodable for DataChangeFilter

Source§

impl BinaryEncodable for DataChangeNotification

Source§

impl BinaryEncodable for DataChangeTrigger

Source§

impl BinaryEncodable for DataValue

Source§

impl BinaryEncodable for DateTime

Source§

impl BinaryEncodable for DeleteMonitoredItemsRequest

Source§

impl BinaryEncodable for DeleteMonitoredItemsResponse

Source§

impl BinaryEncodable for DeleteSubscriptionsRequest

Source§

impl BinaryEncodable for DeleteSubscriptionsResponse

Source§

impl BinaryEncodable for DiagnosticInfo

Source§

impl BinaryEncodable for EUInformation

Source§

impl BinaryEncodable for EndpointDescription

Source§

impl BinaryEncodable for EventFieldList

Source§

impl BinaryEncodable for EventFilter

Source§

impl BinaryEncodable for EventFilterResult

Source§

impl BinaryEncodable for EventNotificationList

Source§

impl BinaryEncodable for ExpandedNodeId

Source§

impl BinaryEncodable for ExtensionObject

Source§

impl BinaryEncodable for FilterOperator

Source§

impl BinaryEncodable for FindServersRequest

Source§

impl BinaryEncodable for FindServersResponse

Source§

impl BinaryEncodable for GetEndpointsRequest

Source§

impl BinaryEncodable for GetEndpointsResponse

Source§

impl BinaryEncodable for Guid

Source§

impl BinaryEncodable for HistoryData

Source§

impl BinaryEncodable for HistoryReadRequest

Source§

impl BinaryEncodable for HistoryReadResponse

Source§

impl BinaryEncodable for HistoryReadResult

Source§

impl BinaryEncodable for HistoryReadValueId

Source§

impl BinaryEncodable for LocalizedText

Source§

impl BinaryEncodable for MessageSecurityMode

Source§

impl BinaryEncodable for ModifyMonitoredItemsRequest

Source§

impl BinaryEncodable for ModifyMonitoredItemsResponse

Source§

impl BinaryEncodable for ModifySubscriptionRequest

Source§

impl BinaryEncodable for ModifySubscriptionResponse

Source§

impl BinaryEncodable for MonitoredItemCreateRequest

Source§

impl BinaryEncodable for MonitoredItemCreateResult

Source§

impl BinaryEncodable for MonitoredItemModifyRequest

Source§

impl BinaryEncodable for MonitoredItemModifyResult

Source§

impl BinaryEncodable for MonitoredItemNotification

Source§

impl BinaryEncodable for MonitoringMode

Source§

impl BinaryEncodable for MonitoringParameters

Source§

impl BinaryEncodable for NodeClass

Source§

impl BinaryEncodable for NodeId

Source§

impl BinaryEncodable for NotificationMessage

Source§

impl BinaryEncodable for OpenSecureChannelRequest

Source§

impl BinaryEncodable for OpenSecureChannelResponse

Source§

impl BinaryEncodable for PublishRequest

Source§

impl BinaryEncodable for PublishResponse

Source§

impl BinaryEncodable for QualifiedName

Source§

impl BinaryEncodable for ReadRawModifiedDetails

Source§

impl BinaryEncodable for ReadRequest

Source§

impl BinaryEncodable for ReadResponse

Source§

impl BinaryEncodable for ReadValueId

Source§

impl BinaryEncodable for ReferenceDescription

Source§

impl BinaryEncodable for RelativePath

Source§

impl BinaryEncodable for RelativePathElement

Source§

impl BinaryEncodable for RepublishRequest

Source§

impl BinaryEncodable for RepublishResponse

Source§

impl BinaryEncodable for RequestHeader

Source§

impl BinaryEncodable for ResponseHeader

Source§

impl BinaryEncodable for SecurityTokenRequestType

Source§

impl BinaryEncodable for ServerState

Source§

impl BinaryEncodable for ServerStatusDataType

Source§

impl BinaryEncodable for ServiceFault

Source§

impl BinaryEncodable for SetMonitoringModeRequest

Source§

impl BinaryEncodable for SetMonitoringModeResponse

Source§

impl BinaryEncodable for SetPublishingModeRequest

Source§

impl BinaryEncodable for SetPublishingModeResponse

Source§

impl BinaryEncodable for SignatureData

Source§

impl BinaryEncodable for SignedSoftwareCertificate

Source§

impl BinaryEncodable for SimpleAttributeOperand

Source§

impl BinaryEncodable for StatusChangeNotification

Source§

impl BinaryEncodable for StatusCode

Source§

impl BinaryEncodable for SubscriptionAcknowledgement

Source§

impl BinaryEncodable for TimestampsToReturn

Source§

impl BinaryEncodable for TranslateBrowsePathsToNodeIdsRequest

Source§

impl BinaryEncodable for TranslateBrowsePathsToNodeIdsResponse

Source§

impl BinaryEncodable for UAString

Source§

impl BinaryEncodable for UserNameIdentityToken

Source§

impl BinaryEncodable for UserTokenPolicy

Source§

impl BinaryEncodable for UserTokenType

Source§

impl BinaryEncodable for Variant

Source§

impl BinaryEncodable for ViewDescription

Source§

impl BinaryEncodable for WriteRequest

Source§

impl BinaryEncodable for WriteResponse

Source§

impl BinaryEncodable for WriteValue