pub struct CoreEngine { /* private fields */ }Expand description
核心生成引擎
Implementations§
Source§impl CoreEngine
impl CoreEngine
Sourcepub fn register_generator<T: Generator + 'static>(
&mut self,
name: String,
generator: T,
)
pub fn register_generator<T: Generator + 'static>( &mut self, name: String, generator: T, )
注册生成器
Sourcepub fn metrics(&self) -> Arc<GeneratorMetrics>
pub fn metrics(&self) -> Arc<GeneratorMetrics>
获取指标
Sourcepub fn update_config(&mut self, config: GenConfig)
pub fn update_config(&mut self, config: GenConfig)
更新配置
Sourcepub fn reset_metrics(&self)
pub fn reset_metrics(&self)
重置指标
Auto Trait Implementations§
impl Freeze for CoreEngine
impl !RefUnwindSafe for CoreEngine
impl Send for CoreEngine
impl Sync for CoreEngine
impl Unpin for CoreEngine
impl !UnwindSafe for CoreEngine
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> 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