Struct rerun::commands::entrypoint::Args
source · struct Args {Show 24 fields
command: Option<Command>,
bind: String,
drop_at_latency: Option<String>,
memory_limit: String,
server_memory_limit: String,
persist_state: bool,
port: u16,
profile: bool,
save: Option<String>,
screenshot_to: Option<PathBuf>,
serve: bool,
serve_web: bool,
expect_data_soon: bool,
threads: i32,
url_or_paths: Vec<String>,
version: bool,
web_viewer: bool,
web_viewer_port: WebViewerServerPort,
hide_welcome_screen: bool,
window_size: Option<String>,
ws_server_port: RerunServerPort,
renderer: Option<String>,
video_decoder: Option<String>,
test_receive: bool,
}
Fields§
§command: Option<Command>
§bind: String
What bind address IP to use.
drop_at_latency: Option<String>
Set a maximum input latency, e.g. “200ms” or “10s”.
If we go over this, we start dropping packets.
The default is no limit, which means Rerun might eat more and more memory and have longer and longer latency, if you are logging data faster than Rerun can index it.
memory_limit: String
§server_memory_limit: String
§persist_state: bool
§port: u16
What TCP port do we listen to (for SDKs to connect to)?
profile: bool
Start with the puffin profiler running.
save: Option<String>
Stream incoming log events to an .rrd file at the given path.
screenshot_to: Option<PathBuf>
Take a screenshot of the app and quit.
We use this to generate screenshots of our examples.
Useful together with --window-size
.
serve: bool
Deprecated: use --serve-web
instead.
serve_web: bool
Serve the recordings over WebSocket to one or more Rerun Viewers.
This will also host a web-viewer over HTTP that can connect to the WebSocket address, but you can also connect with the native binary.
rerun --serve-web
will act like a proxy, listening for incoming TCP connection from
logging SDKs, and forwarding it to Rerun viewers.
expect_data_soon: bool
This is a hint that we expect a recording to stream in very soon.
This is set by the spawn()
method in our logging SDK.
The viewer will respond by fading in the welcome screen, instead of showing it directly. This ensures that it won’t blink for a few frames before switching to the recording.
threads: i32
The number of compute threads to use.
If zero, the same number of threads as the number of cores will be used. If negative, will use that much fewer threads than cores.
Rerun will still use some additional threads for I/O.
url_or_paths: Vec<String>
§version: bool
Print version and quit
web_viewer: bool
Start the viewer in the browser (instead of locally).
Requires Rerun to have been compiled with the web_viewer
feature.
This implies --serve-web
.
web_viewer_port: WebViewerServerPort
What port do we listen to for hosting the web viewer over HTTP. A port of 0 will pick a random port.
hide_welcome_screen: bool
Hide the normal Rerun welcome screen.
window_size: Option<String>
Set the screen resolution (in logical points), e.g. “1920x1080”.
Useful together with --screenshot-to
.
ws_server_port: RerunServerPort
What port do we listen to for incoming websocket connections from the viewer A port of 0 will pick a random port.
renderer: Option<String>
Override the default graphics backend and for a specific one instead.
When using --web-viewer
this should be one of: webgpu
, webgl
.
When starting a native viewer instead this should be one of:
-
vulkan
(Linux & Windows only) -
gl
(Linux & Windows only) -
metal
(macOS only)
video_decoder: Option<String>
Overwrites hardware acceleration option for video decoding.
By default uses the last provided setting, which is auto
if never configured.
Depending on the decoder backend, these settings are merely hints and may be ignored. However, they can be useful in some situations to work around issues.
Possible values:
-
auto
May use hardware acceleration if available and compatible with the codec. -
prefer_software
Should use a software decoder even if hardware acceleration is available. If no software decoder is present, this may cause decoding to fail. -
prefer_hardware
Should use a hardware decoder. If no hardware decoder is present, this may cause decoding to fail.
test_receive: bool
Ingest data and then quit once the goodbye message has been received.
Used for testing together with RERUN_PANIC_ON_WARN=1
.
Fails if no messages are received, or if no messages are received within a dozen or so seconds.
Implementations§
Trait Implementations§
source§impl Args for Args
impl Args for Args
source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
ArgGroup::id
][crate::ArgGroup::id] for this set of argumentssource§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 FromArgMatches for Args
impl FromArgMatches for Args
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 Args
impl Parser for Args
§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
§fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
Auto Trait Implementations§
impl Freeze for Args
impl RefUnwindSafe for Args
impl Send for Args
impl Sync for Args
impl Unpin for Args
impl UnwindSafe for Args
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> CheckedAs for T
impl<T> CheckedAs for T
source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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