Skip to main content

Module request

Module request 

Source
Expand description

RPC frames: requests, responses, envelopes, and structured errors

Structs§

ActionReply
One matched sheep’s row in a Trigger reply.
DogSectionToml
A dog’s [dog.<name>] config section, carried as TOML text.
Envelope
A request frame
ExitInfo
Why a sheep’s process most recently stopped existing under this daemon.
Hello
Client’s opening frame
HelloAck
Daemon’s handshake answer
Lamb
One process the OS reports as a descendant of a sheep.
LineReply
One matched sheep’s row in a SendLine reply.
ProcessInfo
Snapshot of one sheep for listings and events
ProcessInfoBuilder
Builds a ProcessInfo, which is #[non_exhaustive] and so cannot be written as a struct literal outside this crate.
Reply
A reply frame
RpcError
Structured RPC failure
SheepApplied
What one app’s Request::ApplyConfig did: the answer a load owes the operator who ran it
SheepDrift
One registered sheep whose stored config differs from a caller’s copy: the answer Request::ConfigDrift is asking for
SignalReply
One matched sheep’s row in a Signal reply.
Smit
A short marker a dog attaches to a sheep for shep flock to paint.

Enums§

ActionOutcome
What happened when the daemon tried to deliver one sheep’s triggered action.
DogSource
Where a dog came from: this binary, or one an operator adopted.
LineOutcome
What happened when the shepherd tried to write one line to a sheep’s stdin.
Request
One RPC request
Response
One RPC response (pairs with Request variants)
RpcErrorCode
Machine-readable RPC error codes
SelectorSpec
Serializable selector (mirror of crate::selector::ProcessSelector; regex travels as its source string)
SignalOutcome
What happened when the shepherd tried to deliver one signal.
SmitError
Why a string is not a Smit.

Functions§

sort_flock
Orders one flock listing the way every operator-facing surface presents one: (name, instance, id).

Type Aliases§

HelloReply
Handshake outcome: HelloAck or a typed refusal, since version skew is an error rather than silence. Same Ok/Err wire shape as Reply::result; refusals use RpcErrorCode::ProtocolMismatch.