pub struct KeyedStatefulTestHelper { /* private fields */ }Implementations§
Source§impl KeyedStatefulTestHelper
impl KeyedStatefulTestHelper
pub fn new(shape: RowShape) -> Self
pub fn counter() -> Self
pub fn sum() -> Self
pub fn set_state<K>(&mut self, key: K, values: &[Value])where
K: IntoEncodedKey,
pub fn get_state<K>(&self, key: K) -> Option<Vec<Value>>where
K: IntoEncodedKey,
pub fn assert_state<K>(&self, key: K, expected: &[Value])where
K: IntoEncodedKey,
pub fn remove_state<K>(&mut self, key: K) -> Option<Vec<Value>>where
K: IntoEncodedKey,
pub fn has_state<K>(&self, key: K) -> boolwhere
K: IntoEncodedKey,
pub fn state_count(&self) -> usize
pub fn clear(&mut self)
pub fn keys(&self) -> Vec<&EncodedKey>
pub fn assert_count(&self, expected: usize)
Auto Trait Implementations§
impl Freeze for KeyedStatefulTestHelper
impl RefUnwindSafe for KeyedStatefulTestHelper
impl Send for KeyedStatefulTestHelper
impl Sync for KeyedStatefulTestHelper
impl Unpin for KeyedStatefulTestHelper
impl UnsafeUnpin for KeyedStatefulTestHelper
impl UnwindSafe for KeyedStatefulTestHelper
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> 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