pub enum AgentCommands {
Serve(AgentServeArgs),
Status,
Stop,
Reserve(AgentReserveArgs),
Heartbeat(AgentHeartbeatArgs),
Capture(AgentCaptureArgs),
Ready(AgentReadyArgs),
Release(AgentReleaseArgs),
List(AgentApiListArgs),
}Variants§
Serve(AgentServeArgs)
Run the local agent gRPC daemon.
The daemon binds a Unix socket inside the repo’s .heddle/sockets/
directory and serves the W2 contract to the same-user CLI. Out of
scope for first ship: multi-user, remote daemon-as-service, TLS.
Status
Report whether the local agent daemon is running for this repo.
Stop
Ask the running daemon to drain and exit.
Reserve(AgentReserveArgs)
Atomically reserve a thread for one writer.
Heartbeat(AgentHeartbeatArgs)
Update reservation heartbeat.
Capture(AgentCaptureArgs)
Capture under a session-validated reservation.
Ready(AgentReadyArgs)
Mark a reservation’s thread ready for integration.
Release(AgentReleaseArgs)
Release a reservation (status: complete | abandoned).
List(AgentApiListArgs)
List agent reservations (optionally filtered to alive ones).
Trait Implementations§
Source§impl Clone for AgentCommands
impl Clone for AgentCommands
Source§fn clone(&self) -> AgentCommands
fn clone(&self) -> AgentCommands
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AgentCommands
impl Debug for AgentCommands
Source§impl FromArgMatches for AgentCommands
impl FromArgMatches for AgentCommands
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Subcommand for AgentCommands
impl Subcommand for AgentCommands
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for AgentCommands
impl RefUnwindSafe for AgentCommands
impl Send for AgentCommands
impl Sync for AgentCommands
impl Unpin for AgentCommands
impl UnsafeUnpin for AgentCommands
impl UnwindSafe for AgentCommands
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request