SimpleBinaryDecodable

Trait SimpleBinaryDecodable 

Source
pub trait SimpleBinaryDecodable: Sized {
    // Required method
    fn decode<S: Read + ?Sized>(
        stream: &mut S,
        decoding_options: &DecodingOptions,
    ) -> EncodingResult<Self>;
}
Expand description

Trait for decoding a type that cannot contain any custom types from OPC UA binary. Used in some core modules to decode raw binary messages.

Required Methods§

Source

fn decode<S: Read + ?Sized>( stream: &mut S, decoding_options: &DecodingOptions, ) -> EncodingResult<Self>

Decode Self from the byte stream.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl SimpleBinaryDecodable for bool

Source§

fn decode<S: Read + ?Sized>( stream: &mut S, _decoding_options: &DecodingOptions, ) -> EncodingResult<Self>

Source§

impl SimpleBinaryDecodable for f32

Source§

fn decode<S: Read + ?Sized>( stream: &mut S, _decoding_options: &DecodingOptions, ) -> EncodingResult<Self>

Source§

impl SimpleBinaryDecodable for f64

Source§

fn decode<S: Read + ?Sized>( stream: &mut S, _decoding_options: &DecodingOptions, ) -> EncodingResult<Self>

Source§

impl SimpleBinaryDecodable for i8

Source§

fn decode<S: Read + ?Sized>( stream: &mut S, _decoding_options: &DecodingOptions, ) -> EncodingResult<Self>

Source§

impl SimpleBinaryDecodable for i16

Source§

fn decode<S: Read + ?Sized>( stream: &mut S, _decoding_options: &DecodingOptions, ) -> EncodingResult<Self>

Source§

impl SimpleBinaryDecodable for i32

Source§

fn decode<S: Read + ?Sized>( stream: &mut S, _decoding_options: &DecodingOptions, ) -> EncodingResult<Self>

Source§

impl SimpleBinaryDecodable for i64

Source§

fn decode<S: Read + ?Sized>( stream: &mut S, _decoding_options: &DecodingOptions, ) -> EncodingResult<Self>

Source§

impl SimpleBinaryDecodable for u8

Source§

fn decode<S: Read + ?Sized>( stream: &mut S, _decoding_options: &DecodingOptions, ) -> EncodingResult<Self>

Source§

impl SimpleBinaryDecodable for u16

Source§

fn decode<S: Read + ?Sized>( stream: &mut S, _decoding_options: &DecodingOptions, ) -> EncodingResult<Self>

Source§

impl SimpleBinaryDecodable for u32

Source§

fn decode<S: Read + ?Sized>( stream: &mut S, _decoding_options: &DecodingOptions, ) -> EncodingResult<Self>

Source§

impl SimpleBinaryDecodable for u64

Source§

fn decode<S: Read + ?Sized>( stream: &mut S, _decoding_options: &DecodingOptions, ) -> EncodingResult<Self>

Implementors§