Skip to main content

Module wire

Module wire 

Source
Expand description

Wire codecs and the response value: Decode (frame → typed request), Encode (typed body → bytes), and the SmbResponse/ReplyHeader a handler produces. Every response — solicited, interim, or unsolicited — is serialized through one place so signing/sealing lives in a single site.

Structs§

ReplyHeader
The header fields a reply echoes or sets, captured when the context is built.
SealIntent
Whether a response must be signed and/or sealed. Computed once at accept from the session/request so it is never threaded by hand.
SmbResponse
A finished response: the status, the header it replies under, and the encoded body. Solicited, interim, and unsolicited replies all converge on this type.

Traits§

Decode
Decode one single-command SMB2 frame into a typed request. Implemented per command; dispatched statically by SmbRequest::parse.
Encode
Serialize a typed response body against a reply header.