pub struct ExecutorSettings {
pub highlight_edges: bool,
pub enable_ssao: bool,
pub show_grid: bool,
pub replay: Option<String>,
pub project_directory: Option<TypedPath>,
pub current_file: Option<TypedPath>,
pub fixed_size_grid: bool,
pub skip_artifact_graph: bool,
pub heartbeats: Option<u64>,
}Expand description
The executor settings.
Fields§
§highlight_edges: boolHighlight edges of 3D objects?
enable_ssao: boolWhether or not Screen Space Ambient Occlusion (SSAO) is enabled.
show_grid: boolShow grid?
replay: Option<String>Should engine store this for replay? If so, under what name?
project_directory: Option<TypedPath>The directory of the current project. This is used for resolving import paths. If None is given, the current working directory is used.
current_file: Option<TypedPath>This is the path to the current file being executed. We use this for preventing cyclic imports.
fixed_size_grid: boolWhether or not to automatically scale the grid when user zooms.
skip_artifact_graph: boolSkip sending the engine messages that are only needed to build the artifact graph. When this is true, the artifact graph will be incomplete. So you should only use this option if you know you don’t need the artifact graph or anything that depends on it. In that case, skipping these commands can make execution slightly faster.
heartbeats: Option<u64>If Some(N), sends a heartbeat to keep the WebSocket active, every N seconds. If None, no heartbeats will be sent.
Implementations§
Source§impl ExecutorSettings
impl ExecutorSettings
Sourcepub fn with_current_file(&mut self, current_file: TypedPath)
pub fn with_current_file(&mut self, current_file: TypedPath)
Add the current file path to the executor settings.
Trait Implementations§
Source§impl Clone for ExecutorSettings
impl Clone for ExecutorSettings
Source§fn clone(&self) -> ExecutorSettings
fn clone(&self) -> ExecutorSettings
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ExecutorSettings
impl Debug for ExecutorSettings
Source§impl Default for ExecutorSettings
impl Default for ExecutorSettings
Source§impl<'de> Deserialize<'de> for ExecutorSettings
impl<'de> Deserialize<'de> for ExecutorSettings
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl From<Configuration> for ExecutorSettings
impl From<Configuration> for ExecutorSettings
Source§fn from(config: Configuration) -> Self
fn from(config: Configuration) -> Self
Source§impl From<ProjectConfiguration> for ExecutorSettings
impl From<ProjectConfiguration> for ExecutorSettings
Source§fn from(config: ProjectConfiguration) -> Self
fn from(config: ProjectConfiguration) -> Self
Source§impl PartialEq for ExecutorSettings
impl PartialEq for ExecutorSettings
Source§fn eq(&self, other: &ExecutorSettings) -> bool
fn eq(&self, other: &ExecutorSettings) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for ExecutorSettings
impl Serialize for ExecutorSettings
Source§impl TS for ExecutorSettings
impl TS for ExecutorSettings
Source§type WithoutGenerics = ExecutorSettings
type WithoutGenerics = ExecutorSettings
WithoutGenerics should just be Self.
If the type does have generic parameters, then all generic parameters must be replaced with
a dummy type, e.g ts_rs::Dummy or (). The only requirement for these dummy types is that
EXPORT_TO must be None. Read moreSource§type OptionInnerType = ExecutorSettings
type OptionInnerType = ExecutorSettings
std::option::Option<T>, then this associated type is set to T.
All other implementations of TS should set this type to Self instead.Source§fn docs() -> Option<String>
fn docs() -> Option<String>
TS is derived, docs are
automatically read from your doc comments or #[doc = ".."] attributesSource§fn decl_concrete(cfg: &Config) -> String
fn decl_concrete(cfg: &Config) -> String
TS::decl().
If this type is not generic, then this function is equivalent to TS::decl().Source§fn decl(cfg: &Config) -> String
fn decl(cfg: &Config) -> String
type User = { user_id: number, ... }.
This function will panic if the type has no declaration. Read moreSource§fn inline(cfg: &Config) -> String
fn inline(cfg: &Config) -> String
{ user_id: number }.
This function will panic if the type cannot be inlined.Source§fn inline_flattened(cfg: &Config) -> String
fn inline_flattened(cfg: &Config) -> String
Source§fn visit_generics(v: &mut impl TypeVisitor)where
Self: 'static,
fn visit_generics(v: &mut impl TypeVisitor)where
Self: 'static,
Source§fn output_path() -> Option<PathBuf>
fn output_path() -> Option<PathBuf>
T should be exported, relative to the output directory.
The returned path does not include any base directory. Read moreSource§fn visit_dependencies(v: &mut impl TypeVisitor)where
Self: 'static,
fn visit_dependencies(v: &mut impl TypeVisitor)where
Self: 'static,
Source§fn dependencies(cfg: &Config) -> Vec<Dependency>where
Self: 'static,
fn dependencies(cfg: &Config) -> Vec<Dependency>where
Self: 'static,
Source§fn export(cfg: &Config) -> Result<(), ExportError>where
Self: 'static,
fn export(cfg: &Config) -> Result<(), ExportError>where
Self: 'static,
TS::export_all. Read moreSource§fn export_all(cfg: &Config) -> Result<(), ExportError>where
Self: 'static,
fn export_all(cfg: &Config) -> Result<(), ExportError>where
Self: 'static,
TS::export. Read moreSource§fn export_to_string(cfg: &Config) -> Result<String, ExportError>where
Self: 'static,
fn export_to_string(cfg: &Config) -> Result<String, ExportError>where
Self: 'static,
impl StructuralPartialEq for ExecutorSettings
Auto Trait Implementations§
impl Freeze for ExecutorSettings
impl RefUnwindSafe for ExecutorSettings
impl Send for ExecutorSettings
impl Sync for ExecutorSettings
impl Unpin for ExecutorSettings
impl UnsafeUnpin for ExecutorSettings
impl UnwindSafe for ExecutorSettings
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreSource§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
type Err = Infallible
fn into_result(self) -> Result<T, <T as IntoResult<T>>::Err>
Source§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
type Err = Infallible
fn into_result(self) -> Result<T, <T as IntoResult<T>>::Err>
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.