pub struct TraceSender {
    pub client_id: usize,
    /* private fields */
}
Expand description

Responsible for sending trace data to a TraceReceiver, which will parse the data as it comes in.

Fields

client_id: usize

An external id for this client for logging purposes.

Implementations

Create a receiver to consume trace data generated by this sender.

Send the given buffer to the receiver

Retire this TraceSender, returning the number of bytes we sent over its lifetime.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.