Struct console_api::async_ops::AsyncOp
source · [−]pub struct AsyncOp {
pub id: Option<Id>,
pub metadata: Option<MetaId>,
pub source: String,
pub parent_async_op_id: Option<Id>,
pub resource_id: Option<Id>,
}Expand description
An async operation.
An async operation is an operation that is associated with a resource This could, for example, be a a read or write on a TCP stream, or a receive operation on a channel.
Fields
id: Option<Id>The async op’s ID.
This uniquely identifies this op across all currently live ones.
metadata: Option<MetaId>The numeric ID of the op’s Metadata.
This identifies the Metadata that describes the tracing span
corresponding to this async op. The metadata for this ID will have been sent
in a prior RegisterMetadata message.
source: StringThe source of this async operation. Most commonly this should be the name of the method where the instantiation of this op has happened.
parent_async_op_id: Option<Id>The ID of the parent async op.
This field is only set if this async op was created while inside of another
async op. For example, tokio::sync’s Mutex::lock internally calls
Semaphore::acquire.
This field can be empty; if it is empty, this async op is not a child of another async op.
resource_id: Option<Id>The resources’s ID.
Trait Implementations
Returns the encoded length of the message without a length delimiter.
Encodes the message to a buffer. Read more
Encodes the message to a newly allocated buffer.
Encodes the message with a length-delimiter to a buffer. Read more
Encodes the message with a length-delimiter to a newly allocated buffer.
Decodes an instance of the message from a buffer. Read more
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
B: Buf,
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Decodes an instance of the message from a buffer, and merges it into self. Read more
Decodes a length-delimited instance of the message from buffer, and
merges it into self. Read more
Auto Trait Implementations
impl RefUnwindSafe for AsyncOp
impl UnwindSafe for AsyncOp
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more