pub struct ProfileStatus {
pub profile_id: String,
pub kind: i32,
pub running: bool,
pub started_unix_ms: u64,
pub samples_collected: u64,
pub samples_lost: u64,
pub error: i32,
pub detail: String,
}Fields§
§profile_id: String§kind: i32§running: bool§started_unix_ms: u64§samples_collected: u64§samples_lost: u64Non-zero means the sampler could not keep up and the profile under-represents the workload.
error: i32§detail: StringImplementations§
Source§impl ProfileStatus
impl ProfileStatus
Sourcepub fn kind(&self) -> ProfileKind
pub fn kind(&self) -> ProfileKind
Returns the enum value of kind, or the default if the field is set to an invalid enum value.
Sourcepub fn set_kind(&mut self, value: ProfileKind)
pub fn set_kind(&mut self, value: ProfileKind)
Sets kind to the provided enum value.
Sourcepub fn error(&self) -> ProbeErrorCode
pub fn error(&self) -> ProbeErrorCode
Returns the enum value of error, or the default if the field is set to an invalid enum value.
Sourcepub fn set_error(&mut self, value: ProbeErrorCode)
pub fn set_error(&mut self, value: ProbeErrorCode)
Sets error to the provided enum value.
Trait Implementations§
Source§impl Clone for ProfileStatus
impl Clone for ProfileStatus
Source§fn clone(&self) -> ProfileStatus
fn clone(&self) -> ProfileStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProfileStatus
impl Debug for ProfileStatus
Source§impl Default for ProfileStatus
impl Default for ProfileStatus
impl Eq for ProfileStatus
Source§impl Hash for ProfileStatus
impl Hash for ProfileStatus
Source§impl Message for ProfileStatus
impl Message for ProfileStatus
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for ProfileStatus
impl PartialEq for ProfileStatus
impl StructuralPartialEq for ProfileStatus
Auto Trait Implementations§
impl Freeze for ProfileStatus
impl RefUnwindSafe for ProfileStatus
impl Send for ProfileStatus
impl Sync for ProfileStatus
impl Unpin for ProfileStatus
impl UnsafeUnpin for ProfileStatus
impl UnwindSafe for ProfileStatus
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