pub struct TuiArgs {
pub project: Option<PathBuf>,
pub allow_network: bool,
pub a2a: bool,
pub a2a_port: Option<u16>,
pub a2a_hostname: String,
pub a2a_public_url: Option<String>,
pub a2a_name: Option<String>,
pub a2a_description: Option<String>,
pub a2a_peer: Vec<String>,
pub a2a_discovery_interval_secs: u64,
pub a2a_auto_introduce: bool,
pub a2a_mdns: bool,
}Fields§
§project: Option<PathBuf>Project directory
allow_network: boolAllow network access in sandboxed commands
a2a: boolDisable the built-in A2A peer endpoint. By default the TUI binds an
A2A peer with auto-port, auto-name, and mDNS-based peer discovery —
other CodeTether processes on the same host or LAN find each other
without flags. Pass --no-a2a for purely interactive mode.
a2a_port: Option<u16>Override the auto-picked A2A port. By default the OS assigns one (port 0). Specify a port for stable curl-able URLs.
a2a_hostname: StringA2A bind hostname. The default (0.0.0.0) provides the intended
zero-config path: auto-port, auto-name, and mDNS discovery without
extra flags. Use 127.0.0.1 to make the peer loopback-only.
a2a_public_url: Option<String>Public URL published in the agent card.
a2a_name: Option<String>Override the auto-picked agent name (default:
a2a_description: Option<String>Optional description for the A2A card.
a2a_peer: Vec<String>Explicit peer seed URLs (in addition to mDNS-discovered peers). Useful for cross-host setups where mDNS isn’t routable.
a2a_discovery_interval_secs: u64Discovery interval for explicit –a2a-peer seeds, in seconds. Clamped to ≥ 5. (mDNS is event-driven, not polled.)
a2a_auto_introduce: boolDisable auto-intro to newly discovered peers.
a2a_mdns: boolDisable mDNS-based peer discovery. Without mDNS, only explicit –a2a-peer seeds are discovered. mDNS is on by default for true P2P.
Trait Implementations§
Source§impl Args for TuiArgs
impl Args for TuiArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl CommandFactory for TuiArgs
impl CommandFactory for TuiArgs
Source§impl FromArgMatches for TuiArgs
impl FromArgMatches for TuiArgs
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>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl Parser for TuiArgs
impl Parser for TuiArgs
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for TuiArgs
impl RefUnwindSafe for TuiArgs
impl Send for TuiArgs
impl Sync for TuiArgs
impl Unpin for TuiArgs
impl UnsafeUnpin for TuiArgs
impl UnwindSafe for TuiArgs
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
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§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>
T in a tonic::Request