pub struct BatchParallelResult {
pub total_affected: u64,
pub success_shards: usize,
pub failed_shards: Vec<(usize, DbError)>,
}Expand description
v9.6.0 并行批量执行结果
Fields§
§total_affected: u64总影响行数(所有成功分片之和)
success_shards: usize成功分片数
failed_shards: Vec<(usize, DbError)>失败分片列表:(分片索引, 错误)
Implementations§
Source§impl BatchParallelResult
impl BatchParallelResult
Sourcepub fn is_all_success(&self) -> bool
pub fn is_all_success(&self) -> bool
是否所有分片均成功
Sourcepub fn total_shards(&self) -> usize
pub fn total_shards(&self) -> usize
总分片数
Sourcepub fn failed_count(&self) -> usize
pub fn failed_count(&self) -> usize
失败分片数
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BatchParallelResult
impl RefUnwindSafe for BatchParallelResult
impl Send for BatchParallelResult
impl Sync for BatchParallelResult
impl Unpin for BatchParallelResult
impl UnsafeUnpin for BatchParallelResult
impl UnwindSafe for BatchParallelResult
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more