pub struct P2p {
pub irc: P2pIrc,
pub dns: P2pDns,
pub no_bootstrap: bool,
pub no_fetch: bool,
pub no_bind: bool,
pub bind: Vec<SocketAddr>,
pub announce: Vec<SocketAddr>,
pub check_container_updates: Option<String>,
pub update_assume_commit: Option<String>,
}
Expand description
Run in p2p swarm mode
Fieldsยง
ยงirc: P2pIrc
ยงdns: P2pDns
ยงno_bootstrap: bool
Do not use any bootstrapping mechanism, initial peers need to be added manually
no_fetch: bool
Do not actively fetch updates from the configured repositories
no_bind: bool
Do not bind a sync port for p2p traffic
bind: Vec<SocketAddr>
The addresses to bind a sync port for p2p traffic (if not disabled)
announce: Vec<SocketAddr>
Configure addresses to announce if somebody wants to sync from us
check_container_updates: Option<String>
Monitor a container registry for updates and terminate if an update is available (eg. ghcr.io/kpcyrd/apt-swarm:edge)
update_assume_commit: Option<String>
The VCS commit to assume for our currently running image
Trait Implementationsยง
Sourceยงimpl Args for P2p
impl Args for P2p
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 CommandFactory for P2p
impl CommandFactory for P2p
Sourceยงimpl FromArgMatches for P2p
impl FromArgMatches for P2p
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
.Sourceยงimpl Parser for P2p
impl Parser for P2p
Sourceยงfn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error.
Sourceยงfn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on 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 P2p
impl RefUnwindSafe for P2p
impl Send for P2p
impl Sync for P2p
impl Unpin for P2p
impl UnwindSafe for P2p
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> 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