[−][src]Struct arcon::prelude::lookup::gc::UpdateStrategy
Defines an interval update strategy.
Methods
impl UpdateStrategy
[src]
pub fn new(
curr: u64,
min: u64,
max: u64,
incr: u64,
decr: u64,
algo: FeedbackAlgorithm
) -> UpdateStrategy
[src]
curr: u64,
min: u64,
max: u64,
incr: u64,
decr: u64,
algo: FeedbackAlgorithm
) -> UpdateStrategy
pub fn curr(&self) -> u64
[src]
pub fn incr(&mut self) -> u64
[src]
Increments the current value, clamping it at the configured maximum. The updated value is returned.
pub fn decr(&mut self) -> u64
[src]
Decrements the current value, clamping it at the configured minimum. The updated value is returned.
Auto Trait Implementations
impl Send for UpdateStrategy
impl Unpin for UpdateStrategy
impl Sync for UpdateStrategy
impl UnwindSafe for UpdateStrategy
impl RefUnwindSafe for UpdateStrategy
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Erased for T
impl<T> Deserialisable<T> for T
[src]
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,