Skip to main content

Module origin

Module origin 

Source
Expand description

Origin of an IoContext: whether it was triggered by a client request or by a server event, which decides if it carries a request payload and how its reply header is filled.

Modules§

sealed 🔒

Structs§

Bare
A request-neutral context: the request has been split out to its handler, so the context carries only the shared bits and the reply header.
Solicited
Triggered by a client frame; carries the parsed SmbRequest and echoes the client’s MessageId/SessionId/TreeId on reply.
Unsolicited
Triggered by a server event (oplock/lease break, CHANGE_NOTIFY cleanup); has no request, and header fields are server-chosen ([MS-SMB2] §3.3.4.6).

Traits§

Origin
Where an IoContext came from. Sealed: the set of origins is closed to this crate. Request is the owned payload the context carries (() when there is none).