pub struct NatsOpts {
pub nats_credsfile: Option<PathBuf>,
pub nats_configfile: Option<PathBuf>,
pub nats_remote_url: Option<String>,
pub connect_only: bool,
pub nats_version: String,
pub nats_host: Option<String>,
pub nats_port: Option<u16>,
pub nats_websocket_port: u16,
pub nats_js_domain: Option<String>,
}Fields§
§nats_credsfile: Option<PathBuf>Optional path to a NATS credentials file to authenticate and extend existing NATS infrastructure.
nats_configfile: Option<PathBuf>Optional path to a NATS config file NOTE: If your configuration changes the address or port to listen on from 0.0.0.0:4222, ensure you set –nats-host and –nats-port
nats_remote_url: Option<String>Optional remote URL of existing NATS infrastructure to extend.
connect_only: boolIf a connection can’t be established, exit and don’t start a NATS server. Will be ignored if a remote_url and credsfile are specified
nats_version: StringNATS server version to download, e.g. v2.10.7. See https://github.com/nats-io/nats-server/releases/ for releases
nats_host: Option<String>NATS server host to connect to
nats_port: Option<u16>NATS server port to connect to. This will be used as the NATS listen port if --nats-connect-only isn’t set
nats_websocket_port: u16NATS websocket port to use. TLS is not supported. This is required for the wash ui to connect from localhost
nats_js_domain: Option<String>NATS Server Jetstream domain for extending superclusters
Trait Implementations§
source§impl CommandFactory for NatsOpts
impl CommandFactory for NatsOpts
source§impl From<NatsOpts> for NatsConfig
impl From<NatsOpts> for NatsConfig
source§fn from(other: NatsOpts) -> NatsConfig
fn from(other: NatsOpts) -> NatsConfig
source§impl FromArgMatches for NatsOpts
impl FromArgMatches for NatsOpts
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 NatsOpts
impl Parser for NatsOpts
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 NatsOpts
impl RefUnwindSafe for NatsOpts
impl Send for NatsOpts
impl Sync for NatsOpts
impl Unpin for NatsOpts
impl UnwindSafe for NatsOpts
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
source§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
source§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
self file descriptor.source§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
source§fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
self file descriptor. Read moresource§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 more