Struct rerun::external::re_viewer_context::AppOptions
source · pub struct AppOptions {Show 14 fields
pub low_latency: f32,
pub warn_latency: f32,
pub show_metrics: bool,
pub include_welcome_screen_button_in_recordings_panel: bool,
pub experimental_space_view_screenshots: bool,
pub show_picking_debug_overlay: bool,
pub inspect_blueprint_timeline: bool,
pub blueprint_gc: bool,
pub time_zone: TimeZone,
pub video_decoder_hw_acceleration: DecodeHardwareAcceleration,
pub video_decoder_override_ffmpeg_path: bool,
pub video_decoder_ffmpeg_path: String,
pub mapbox_access_token: String,
pub cache_directory: Option<PathBuf>,
}
Expand description
Global options for the viewer.
Fields§
§low_latency: f32
§warn_latency: f32
§show_metrics: bool
Show milliseconds, RAM usage, etc.
Include the “Welcome screen” application in the recordings panel?
experimental_space_view_screenshots: bool
Enable the experimental feature for space view screenshots.
show_picking_debug_overlay: bool
Displays an overlay for debugging picking.
inspect_blueprint_timeline: bool
Inspect the blueprint timeline.
blueprint_gc: bool
Disable garbage collection of the blueprint.
time_zone: TimeZone
What time zone to display timestamps in.
video_decoder_hw_acceleration: DecodeHardwareAcceleration
Preferred method for video decoding on web.
video_decoder_override_ffmpeg_path: bool
Override the path to the FFmpeg binary.
If set, use video_decoder_ffmpeg_path
as the path to the FFmpeg binary.
Don’t use this field directly, use AppOptions::video_decoder_settings
instead.
Implementation note: we avoid using Option<PathBuf>
here to avoid loosing the user-defined
path when disabling the override.
video_decoder_ffmpeg_path: String
Custom path to the FFmpeg binary.
Don’t use this field directly, use AppOptions::video_decoder_settings
instead.
mapbox_access_token: String
Mapbox API key (used to enable Mapbox-based map view backgrounds).
Can also be set using the RERUN_MAPBOX_ACCESS_TOKEN
environment variable.
cache_directory: Option<PathBuf>
Path to the directory suitable for storing cache data.
By cache data, we mean data that is safe to be garbage collected by the OS. Defaults to
to [directories::ProjectDirs::cache_dir
].
NOTE: subsystems making use of the cache directory should use a unique sub-directory name,
see AppOptions::cache_subdirectory
.
Implementations§
source§impl AppOptions
impl AppOptions
pub fn mapbox_access_token(&self) -> Option<String>
pub fn cache_subdirectory(&self, sub_dir: impl AsRef<Path>) -> Option<PathBuf>
sourcepub fn default_cache_directory() -> Option<PathBuf>
pub fn default_cache_directory() -> Option<PathBuf>
Default cache directory
sourcepub fn video_decoder_settings(&self) -> DecodeSettings
pub fn video_decoder_settings(&self) -> DecodeSettings
Get the video decoder settings.
Trait Implementations§
source§impl Debug for AppOptions
impl Debug for AppOptions
source§impl Default for AppOptions
impl Default for AppOptions
source§fn default() -> AppOptions
fn default() -> AppOptions
source§impl<'de> Deserialize<'de> for AppOptionswhere
AppOptions: Default,
impl<'de> Deserialize<'de> for AppOptionswhere
AppOptions: Default,
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<AppOptions, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<AppOptions, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
source§impl PartialEq for AppOptions
impl PartialEq for AppOptions
source§fn eq(&self, other: &AppOptions) -> bool
fn eq(&self, other: &AppOptions) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AppOptions
impl Serialize for AppOptions
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for AppOptions
Auto Trait Implementations§
impl Freeze for AppOptions
impl RefUnwindSafe for AppOptions
impl Send for AppOptions
impl Sync for AppOptions
impl Unpin for AppOptions
impl UnwindSafe for AppOptions
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