pub struct SpatialServiceConfig {
pub enabled: bool,
pub max_leaves: usize,
pub phase_commit_threshold: usize,
}Expand description
Service-level config (mirrors types SpatialConfig).
Fields§
§enabled: boolWhether the service should be considered active.
max_leaves: usizeMax leaves per branch.
phase_commit_threshold: usizePhase commit threshold (Phase D).
Implementations§
Source§impl SpatialServiceConfig
impl SpatialServiceConfig
Sourcepub fn from_spatial_config(cfg: &SpatialConfig) -> Self
pub fn from_spatial_config(cfg: &SpatialConfig) -> Self
Build from clawft-types kernel spatial config.
Sourcepub fn to_store_config(&self) -> BvhStoreConfig
pub fn to_store_config(&self) -> BvhStoreConfig
Convert to clawft_bvh::BvhStoreConfig.
Trait Implementations§
Source§impl Clone for SpatialServiceConfig
impl Clone for SpatialServiceConfig
Source§impl Debug for SpatialServiceConfig
impl Debug for SpatialServiceConfig
Source§impl Default for SpatialServiceConfig
impl Default for SpatialServiceConfig
Source§impl<'de> Deserialize<'de> for SpatialServiceConfig
impl<'de> Deserialize<'de> for SpatialServiceConfig
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SpatialServiceConfig
impl RefUnwindSafe for SpatialServiceConfig
impl Send for SpatialServiceConfig
impl Sync for SpatialServiceConfig
impl Unpin for SpatialServiceConfig
impl UnsafeUnpin for SpatialServiceConfig
impl UnwindSafe for SpatialServiceConfig
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> ⓘ
Converts
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> ⓘ
Converts
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