pub struct SyncDaemonArgs {
pub peers: Vec<String>,
pub interval: u64,
pub api_key: Option<String>,
pub batch_size: usize,
pub client_cert: Option<PathBuf>,
pub client_key: Option<PathBuf>,
pub insecure_skip_server_verify: bool,
}Fields§
§peers: Vec<String>Comma-separated list of peer HTTP endpoints to mesh with.
interval: u64Seconds between sync cycles. Minimum 1.
api_key: Option<String>Optional X-API-Key to present to peers that have api-key auth enabled.
batch_size: usizeCap on the number of memories transferred per peer per cycle.
client_cert: Option<PathBuf>Layer 2 client-cert PEM used when the peer demands mTLS.
client_key: Option<PathBuf>Layer 2 client-key PEM. Must pair with --client-cert.
insecure_skip_server_verify: boolDisable server-cert verification on outbound HTTPS to peers. DANGEROUS — accepts any server cert without validation.
Trait Implementations§
Source§impl Args for SyncDaemonArgs
impl Args for SyncDaemonArgs
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
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl FromArgMatches for SyncDaemonArgs
impl FromArgMatches for SyncDaemonArgs
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(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Freeze for SyncDaemonArgs
impl RefUnwindSafe for SyncDaemonArgs
impl Send for SyncDaemonArgs
impl Sync for SyncDaemonArgs
impl Unpin for SyncDaemonArgs
impl UnsafeUnpin for SyncDaemonArgs
impl UnwindSafe for SyncDaemonArgs
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
impl<T> ErasedDestructor for Twhere
T: 'static,
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>
Converts
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>
Converts
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 more