pub(crate) struct CloseOutcome {
pub(crate) closed: usize,
pub(crate) failed: usize,
}Expand description
Files closed while handling one payload.
The writer task uses it to decide whether pending messages can be acked (a file closed) or must be left for redelivery (a close failed).
Fields§
§closed: usizeFiles closed and published successfully.
failed: usizeFiles whose close failed.
Implementations§
Source§impl CloseOutcome
impl CloseOutcome
Sourcepub(crate) fn record(
&mut self,
result: Result<PathBuf, Box<dyn Error + Send + Sync>>,
channel: u8,
file_index: usize,
)
pub(crate) fn record( &mut self, result: Result<PathBuf, Box<dyn Error + Send + Sync>>, channel: u8, file_index: usize, )
Counts and logs the result of one ParquetLogger::close call.
§Arguments
result- Result returned by the close.channel- Channel of the file, for the log message.file_index- Part index of the file, for the log message.
Trait Implementations§
Source§impl Clone for CloseOutcome
impl Clone for CloseOutcome
Source§fn clone(&self) -> CloseOutcome
fn clone(&self) -> CloseOutcome
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 moreimpl Copy for CloseOutcome
Source§impl Debug for CloseOutcome
impl Debug for CloseOutcome
Source§impl Default for CloseOutcome
impl Default for CloseOutcome
Source§fn default() -> CloseOutcome
fn default() -> CloseOutcome
Returns the “default value” for a type. Read more
impl Eq for CloseOutcome
Source§impl PartialEq for CloseOutcome
impl PartialEq for CloseOutcome
impl StructuralPartialEq for CloseOutcome
Auto Trait Implementations§
impl Freeze for CloseOutcome
impl RefUnwindSafe for CloseOutcome
impl Send for CloseOutcome
impl Sync for CloseOutcome
impl Unpin for CloseOutcome
impl UnsafeUnpin for CloseOutcome
impl UnwindSafe for CloseOutcome
Blanket Implementations§
impl<T> Allocation for T
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more