pub struct AppendSessionConfig { /* private fields */ }Expand description
Configuration for an AppendSession.
Implementations§
Source§impl AppendSessionConfig
impl AppendSessionConfig
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new AppendSessionConfig with default settings.
Sourcepub fn with_max_inflight_bytes(
self,
max_inflight_bytes: u32,
) -> Result<Self, ValidationError>
pub fn with_max_inflight_bytes( self, max_inflight_bytes: u32, ) -> Result<Self, ValidationError>
Set the limit on total metered bytes of unacknowledged AppendInputs held in memory.
Note: It must be at least 1MiB.
Defaults to 10MiB.
Sourcepub fn with_max_inflight_batches(
self,
max_inflight_batches: NonZeroU32,
) -> Result<Self, ValidationError>
pub fn with_max_inflight_batches( self, max_inflight_batches: NonZeroU32, ) -> Result<Self, ValidationError>
Set the limit on number of unacknowledged AppendInputs held in memory.
Defaults to no limit.
Trait Implementations§
Source§impl Clone for AppendSessionConfig
impl Clone for AppendSessionConfig
Source§fn clone(&self) -> AppendSessionConfig
fn clone(&self) -> AppendSessionConfig
Returns a duplicate 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 AppendSessionConfig
impl Debug for AppendSessionConfig
Auto Trait Implementations§
impl Freeze for AppendSessionConfig
impl RefUnwindSafe for AppendSessionConfig
impl Send for AppendSessionConfig
impl Sync for AppendSessionConfig
impl Unpin for AppendSessionConfig
impl UnwindSafe for AppendSessionConfig
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§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