pub struct CompactTaskProgress {
pub task_id: u64,
pub num_ssts_sealed: u32,
pub num_ssts_uploaded: u32,
pub num_progress_key: u64,
pub num_pending_read_io: u64,
pub num_pending_write_io: u64,
pub compaction_group_id: Option<u64>,
}
Expand description
This is a heartbeat message. Task will be considered dead if CompactTaskProgress is not received for a timeout or num_ssts_sealed/num_ssts_uploaded do not increase for a timeout.
Fields§
§task_id: u64
§num_ssts_sealed: u32
§num_ssts_uploaded: u32
§num_progress_key: u64
§num_pending_read_io: u64
§num_pending_write_io: u64
§compaction_group_id: Option<u64>
Implementations§
source§impl CompactTaskProgress
impl CompactTaskProgress
sourcepub fn compaction_group_id(&self) -> u64
pub fn compaction_group_id(&self) -> u64
Returns the value of compaction_group_id
, or the default value if compaction_group_id
is unset.
source§impl CompactTaskProgress
impl CompactTaskProgress
pub fn get_task_id(&self) -> u64
pub fn get_num_ssts_sealed(&self) -> u32
pub fn get_num_ssts_uploaded(&self) -> u32
pub fn get_num_progress_key(&self) -> u64
pub fn get_num_pending_read_io(&self) -> u64
pub fn get_num_pending_write_io(&self) -> u64
pub fn get_compaction_group_id(&self) -> Result<&u64, PbFieldNotFound>
Trait Implementations§
source§impl Clone for CompactTaskProgress
impl Clone for CompactTaskProgress
source§fn clone(&self) -> CompactTaskProgress
fn clone(&self) -> CompactTaskProgress
Returns a copy of the value. Read more
1.0.0 · 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 CompactTaskProgress
impl Debug for CompactTaskProgress
source§impl Default for CompactTaskProgress
impl Default for CompactTaskProgress
source§impl<'de> Deserialize<'de> for CompactTaskProgress
impl<'de> Deserialize<'de> for CompactTaskProgress
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Message for CompactTaskProgress
impl Message for CompactTaskProgress
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 CompactTaskProgress
impl PartialEq for CompactTaskProgress
source§impl Serialize for CompactTaskProgress
impl Serialize for CompactTaskProgress
impl Copy for CompactTaskProgress
impl StructuralPartialEq for CompactTaskProgress
Auto Trait Implementations§
impl Freeze for CompactTaskProgress
impl RefUnwindSafe for CompactTaskProgress
impl Send for CompactTaskProgress
impl Sync for CompactTaskProgress
impl Unpin for CompactTaskProgress
impl UnwindSafe for CompactTaskProgress
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request