Skip to main content

TdsDecode

Trait TdsDecode 

Source
pub trait TdsDecode: Sized {
    // Required method
    fn decode(buf: &mut Bytes, type_info: &TypeInfo) -> Result<Self, TypeError>;
}
Expand description

Trait for decoding values from TDS binary format.

Required Methods§

Source

fn decode(buf: &mut Bytes, type_info: &TypeInfo) -> Result<Self, TypeError>

Decode a value from the buffer.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§