pub struct TickDumper { /* private fields */ }Expand description
Tick Dumper - Dumpable の Registry + 配信
Dumpableを登録し、Tick終了時に全てのスナップショットを収集して配信。
Implementations§
Source§impl TickDumper
impl TickDumper
Sourcepub fn register_all(
&mut self,
objs: impl IntoIterator<Item = Arc<dyn Dumpable>>,
)
pub fn register_all( &mut self, objs: impl IntoIterator<Item = Arc<dyn Dumpable>>, )
複数のDumpableを一括登録
Sourcepub fn is_enabled(&self) -> bool
pub fn is_enabled(&self) -> bool
有効かどうか
Sourcepub fn set_dump_on_error(&self, enabled: bool)
pub fn set_dump_on_error(&self, enabled: bool)
Error時のDump有効/無効設定
Sourcepub fn dump_error(&self, tick: u64, error: &str)
pub fn dump_error(&self, tick: u64, error: &str)
Error発生時(enabledに関係なくDump)
Sourcepub fn subscribe(&self) -> Receiver<DebugSnapshot>
pub fn subscribe(&self) -> Receiver<DebugSnapshot>
Subscriberを取得
Sourcepub fn observer_count(&self) -> usize
pub fn observer_count(&self) -> usize
登録済みDumpableの数
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for TickDumper
impl !RefUnwindSafe for TickDumper
impl Send for TickDumper
impl Sync for TickDumper
impl Unpin for TickDumper
impl !UnwindSafe for TickDumper
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