Skip to main content

Encode

Trait Encode 

Source
pub trait Encode {
    // Required method
    fn encode(&self, hdr: &ReplyHeader) -> Vec<u8> ;
}
Expand description

Serialize a typed response body against a reply header.

Required Methods§

Source

fn encode(&self, hdr: &ReplyHeader) -> Vec<u8>

Encode the response body (without the 64-byte SMB2 header).

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§