pub enum Kind {
Describe,
Described,
Call,
Reply,
Cancel,
NoAnswer,
Ack,
Hold,
Log,
Type,
Typed,
}Expand description
Which message a frame holds: its kind.
Variants§
Describe
describe, host or client to its peer: its data version and the
largest encoded answer, in bytes, it admits; a client sends 0.
Described
The answer to describe, implementation to host: its data version
and, in that version, each declaration it serves (served).
Call
call, host to implementation.
Reply
reply, implementation or client to host.
Cancel
cancel, host to implementation: a request to stop work on a
call, which proves nothing.
NoAnswer
no_answer, implementation to host: it has no answer to a call.
The call stays open, and the run stops.
Ack
ack, host to implementation or client: what became of a reply.
Hold
hold, implementation to host: not an answer, but the promise to
answer the call later. With retry_at, the host asks again then.
Log
log, implementation to host: one line for a run’s log.
Type
type, client to host: which type a reply to a call is encoded
at.
Typed
The answer to type, host to client.
Implementations§
Source§impl Kind
impl Kind
Sourcepub fn on(self, route: Route) -> bool
pub fn on(self, route: Route) -> bool
Whether a message of this kind travels on route: the reply socket
shares describe, reply and ack with the Tool process protocol
and has type and its answer alone.
Sourcepub fn names_call(self) -> bool
pub fn names_call(self) -> bool
Whether a message of this kind begins with its run and call:
what a frame too large to keep keeps of it. Read from the
declaration, a payload that is one record read as its fields.