pub struct Stream(/* private fields */);
Expand description
Stream of profiling events from one thread.
Implementations§
source§impl Stream
impl Stream
sourcepub fn begin_scope(
&mut self,
start_ns: NanoSecond,
id: &str,
location: &str,
data: &str
) -> usize
pub fn begin_scope( &mut self, start_ns: NanoSecond, id: &str, location: &str, data: &str ) -> usize
Returns position where to write scope size once the scope is closed
pub fn end_scope(&mut self, start_offset: usize, stop_ns: NanoSecond)
Trait Implementations§
source§impl<'de> Deserialize<'de> for Stream
impl<'de> Deserialize<'de> for Stream
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 RefUnwindSafe for Stream
impl Send for Stream
impl Sync for Stream
impl Unpin for Stream
impl UnwindSafe for Stream
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