pub struct LocalStorage<G: GlobalStorageImpl> { /* private fields */ }Implementations§
Source§impl<G: GlobalStorageImpl> LocalStorage<G>
impl<G: GlobalStorageImpl> LocalStorage<G>
pub fn new( global_storage_ref: G, thread_info: ThreadInfo, config: LocalStorageConfig, ) -> Self
pub fn event_range_start(&mut self, hash: u32, name: &str) -> RangeStartRepr
pub fn event_range_end( &mut self, range_start: RangeStartRepr, hash: u32, name: &str, )
pub fn event_instant(&mut self, hash: u32, string: &str)
pub fn set_cur_thread_name(&mut self, name: String)
Sourcepub fn auto_flush(&mut self)
pub fn auto_flush(&mut self)
Check buffer length, and flush if the buffer is full
Trait Implementations§
Source§impl<G: GlobalStorageImpl> Drop for LocalStorage<G>
impl<G: GlobalStorageImpl> Drop for LocalStorage<G>
Auto Trait Implementations§
impl<G> Freeze for LocalStorage<G>where
G: Freeze,
impl<G> RefUnwindSafe for LocalStorage<G>where
G: RefUnwindSafe,
impl<G> Send for LocalStorage<G>where
G: Send,
impl<G> Sync for LocalStorage<G>where
G: Sync,
impl<G> Unpin for LocalStorage<G>where
G: Unpin,
impl<G> UnwindSafe for LocalStorage<G>where
G: UnwindSafe,
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