Struct re_sdk::spawn::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 extra_env: Vec<(String, 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: u16
The port to listen on.
Defaults to 9876
.
wait_for_bind: bool
If true
, the call to spawn
will block until the Rerun Viewer
has successfully bound to the port.
memory_limit: String
An 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: String
Specifies 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.
extra_env: Vec<(String, String)>
Extra environment variables that will be passed as-is to the Rerun Viewer process.
hide_welcome_screen: bool
Hide 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>
§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 more