pub struct PubsubSchedulerConfig {
pub policy: PubsubSchedulingPolicy,
pub fanout: usize,
pub anonymous_free_credit_bytes: u64,
pub reciprocal_credit_multiplier: f64,
pub aging_credit_bytes: u64,
}Fields§
§policy: PubsubSchedulingPolicy§fanout: usize§anonymous_free_credit_bytes: u64§reciprocal_credit_multiplier: f64§aging_credit_bytes: u64Implementations§
Source§impl PubsubSchedulerConfig
impl PubsubSchedulerConfig
pub fn select( &self, stream_id: &str, seq: u64, parent_id: &str, message_bytes: u64, candidates: &[PubsubCandidate], ) -> PubsubSelection
pub fn virtual_finish( &self, candidate: &PubsubCandidate, message_bytes: u64, ) -> f64
Trait Implementations§
Source§impl Clone for PubsubSchedulerConfig
impl Clone for PubsubSchedulerConfig
Source§fn clone(&self) -> PubsubSchedulerConfig
fn clone(&self) -> PubsubSchedulerConfig
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 PubsubSchedulerConfig
impl Debug for PubsubSchedulerConfig
Source§impl Default for PubsubSchedulerConfig
impl Default for PubsubSchedulerConfig
Source§impl PartialEq for PubsubSchedulerConfig
impl PartialEq for PubsubSchedulerConfig
Source§fn eq(&self, other: &PubsubSchedulerConfig) -> bool
fn eq(&self, other: &PubsubSchedulerConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PubsubSchedulerConfig
Auto Trait Implementations§
impl Freeze for PubsubSchedulerConfig
impl RefUnwindSafe for PubsubSchedulerConfig
impl Send for PubsubSchedulerConfig
impl Sync for PubsubSchedulerConfig
impl Unpin for PubsubSchedulerConfig
impl UnsafeUnpin for PubsubSchedulerConfig
impl UnwindSafe for PubsubSchedulerConfig
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> 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