Struct console_api::resources::PollOp
source · [−]pub struct PollOp {
pub metadata: Option<MetaId>,
pub resource_id: Option<Id>,
pub name: String,
pub task_id: Option<Id>,
pub async_op_id: Option<Id>,
pub is_ready: bool,
}Expand description
A PollOp describes each poll operation that completes within the async
application.
Fields
metadata: Option<MetaId>The numeric ID of the op’s Metadata.
This identifies the Metadata that describes the tracing span
corresponding to this op. The metadata for this ID will have been sent
in a prior RegisterMetadata message.
resource_id: Option<Id>The resources’s ID.
name: Stringthe name of this op (e.g. poll_elapsed, new_timeout, reset, etc.)
task_id: Option<Id>Identifies the task context that this poll op has been called from.
async_op_id: Option<Id>Identifies the async op ID that this poll op is part of.
is_ready: boolWhether this poll op has returned with ready or pending.
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 PollOp
impl UnwindSafe for PollOp
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