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.
EnvValue
One environment variable’s value, on its way to a sheep.
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
HostUsage
The machine the flock runs on, as the shepherd last read it.
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
SheepConfigView
One sheep’s effective config as a pane sees it: every field but env’s values, plus which fields an operator has overridden and which are waiting on a respawn.
SheepDrift
One registered sheep whose stored config differs from a caller’s copy: the answer Request::ConfigDrift is asking for
SheepRefusal
One app a multi-sheep reload or restart could not accept, and why
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.