Struct rerun::SpawnOptions
source · pub struct SpawnOptions {
pub port: u16,
pub memory_limit: String,
pub executable_name: String,
pub executable_path: Option<String>,
pub extra_args: Vec<String>,
}
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
.
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.
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
source§impl Default for SpawnOptions
impl Default for SpawnOptions
source§fn default() -> SpawnOptions
fn default() -> 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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
source§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
.source§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
.source§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.source§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.