Expand description
RPC frames: requests, responses, envelopes, and structured errors
Structs§
- Action
Reply - One matched sheep’s row in a
Triggerreply. - DogSection
Toml - A dog’s
[dog.<name>]config section, carried as TOML text. - Envelope
- A request frame
- Exit
Info - Why a sheep’s process most recently stopped existing under this daemon.
- Hello
- Client’s opening frame
- Hello
Ack - Daemon’s handshake answer
- Lamb
- One process the OS reports as a descendant of a sheep.
- Line
Reply - One matched sheep’s row in a
SendLinereply. - Process
Info - Snapshot of one sheep for listings and events
- Process
Info Builder - 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
- Sheep
Applied - What one app’s
Request::ApplyConfigdid: the answer a load owes the operator who ran it - Sheep
Drift - One registered sheep whose stored config differs from a caller’s copy:
the answer
Request::ConfigDriftis asking for - Signal
Reply - One matched sheep’s row in a
Signalreply. - Smit
- A short marker a dog attaches to a sheep for
shep flockto paint.
Enums§
- Action
Outcome - 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.
- Line
Outcome - 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
Requestvariants) - RpcError
Code - Machine-readable RPC error codes
- Selector
Spec - Serializable selector (mirror of
crate::selector::ProcessSelector; regex travels as its source string) - Signal
Outcome - What happened when the shepherd tried to deliver one signal.
- Smit
Error - 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§
- Hello
Reply - Handshake outcome:
HelloAckor a typed refusal, since version skew is an error rather than silence. SameOk/Errwire shape asReply::result; refusals useRpcErrorCode::ProtocolMismatch.