Struct re_sdk::SpawnOptions
source · pub struct SpawnOptions {
pub port: u16,
pub wait_for_bind: bool,
pub memory_limit: String,
pub executable_name: String,
pub executable_path: Option<String>,
pub extra_args: Vec<String>,
pub hide_welcome_screen: bool,
}Expand description
Options to control the behavior of spawn.
Refer to the field-level documentation for more information about each individual options.
The defaults are ok for most use cases: SpawnOptions::default().
Use the partial-default pattern to customize them further:
let opts = re_sdk::SpawnOptions {
port: 1234,
memory_limit: "25%".into(),
..Default::default()
};Fields§
§port: u16The port to listen on.
Defaults to 9876.
wait_for_bind: boolIf true, the call to spawn will block until the Rerun Viewer
has successfully bound to the port.
memory_limit: StringAn upper limit on how much memory the Rerun Viewer should use.
When this limit is reached, Rerun will drop the oldest data.
Example: 16GB or 50% (of system total).
Defaults to 75%.
executable_name: StringSpecifies the name of the Rerun executable.
You can omit the .exe suffix on Windows.
Defaults to rerun.
executable_path: Option<String>Enforce a specific executable to use instead of searching though PATH
for Self::executable_name.
Unspecified by default.
extra_args: Vec<String>Extra arguments that will be passed as-is to the Rerun Viewer process.
hide_welcome_screen: boolHide the welcome screen.
Implementations§
source§impl SpawnOptions
impl SpawnOptions
sourcepub fn connect_addr(&self) -> SocketAddr
pub fn connect_addr(&self) -> SocketAddr
Resolves the final connect address value.
sourcepub fn listen_addr(&self) -> SocketAddr
pub fn listen_addr(&self) -> SocketAddr
Resolves the final listen address value.
sourcepub fn executable_path(&self) -> String
pub fn executable_path(&self) -> String
Resolves the final executable path.
Trait Implementations§
source§impl Clone for SpawnOptions
impl Clone for SpawnOptions
source§fn clone(&self) -> SpawnOptions
fn clone(&self) -> SpawnOptions
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for SpawnOptions
impl Debug for SpawnOptions
Auto Trait Implementations§
impl Freeze for SpawnOptions
impl RefUnwindSafe for SpawnOptions
impl Send for SpawnOptions
impl Sync for SpawnOptions
impl Unpin for SpawnOptions
impl UnwindSafe for SpawnOptions
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>
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> ⓘ
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