pub struct LocalPacketHeader {
pub thread_ord_id: u64,
pub thread_info: ThreadInfo,
pub start_timestamp: u64,
pub end_timestamp: u64,
pub id_store: IdMapping,
}
Expand description
This header describe byte buffer filled with encoded sparkles events. This header is thread-local. Each thread events packet has its own header and buffer.
Fields§
§thread_ord_id: u64
Globally unique order number of the spawned thread
thread_info: ThreadInfo
§start_timestamp: u64
Timestamp of the first event in a buffer
end_timestamp: u64
Timestamp of the last event in a buffer
id_store: IdMapping
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for LocalPacketHeader
impl<'__de, __Context> BorrowDecode<'__de, __Context> for LocalPacketHeader
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl Clone for LocalPacketHeader
impl Clone for LocalPacketHeader
Source§fn clone(&self) -> LocalPacketHeader
fn clone(&self) -> LocalPacketHeader
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for LocalPacketHeader
impl Debug for LocalPacketHeader
Source§impl<__Context> Decode<__Context> for LocalPacketHeader
impl<__Context> Decode<__Context> for LocalPacketHeader
Source§impl Default for LocalPacketHeader
impl Default for LocalPacketHeader
Source§fn default() -> LocalPacketHeader
fn default() -> LocalPacketHeader
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LocalPacketHeader
impl RefUnwindSafe for LocalPacketHeader
impl Send for LocalPacketHeader
impl Sync for LocalPacketHeader
impl Unpin for LocalPacketHeader
impl UnwindSafe for LocalPacketHeader
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