pub struct DrainContainerDistributor<CB, H> { /* private fields */ }
Expand description
A distributor creating containers from a drainable container based on a hash function of the container’s item.
Implementations§
Trait Implementations§
Source§impl<CB, H> Distributor<<CB as ContainerBuilder>::Container> for DrainContainerDistributor<CB, H>where
CB: ContainerBuilder<Container: DrainContainer> + for<'a> PushInto<<CB::Container as DrainContainer>::Item<'a>>,
for<'a> H: FnMut(&<CB::Container as DrainContainer>::Item<'a>) -> u64,
impl<CB, H> Distributor<<CB as ContainerBuilder>::Container> for DrainContainerDistributor<CB, H>where
CB: ContainerBuilder<Container: DrainContainer> + for<'a> PushInto<<CB::Container as DrainContainer>::Item<'a>>,
for<'a> H: FnMut(&<CB::Container as DrainContainer>::Item<'a>) -> u64,
Source§fn partition<T: Clone, P: Push<Message<T, CB::Container>>>(
&mut self,
container: &mut CB::Container,
time: &T,
pushers: &mut [P],
)
fn partition<T: Clone, P: Push<Message<T, CB::Container>>>( &mut self, container: &mut CB::Container, time: &T, pushers: &mut [P], )
Partition the contents of
container
at time
into the pushers
.Auto Trait Implementations§
impl<CB, H> Freeze for DrainContainerDistributor<CB, H>where
H: Freeze,
impl<CB, H> RefUnwindSafe for DrainContainerDistributor<CB, H>where
H: RefUnwindSafe,
CB: RefUnwindSafe,
impl<CB, H> Send for DrainContainerDistributor<CB, H>
impl<CB, H> Sync for DrainContainerDistributor<CB, H>
impl<CB, H> Unpin for DrainContainerDistributor<CB, H>
impl<CB, H> UnwindSafe for DrainContainerDistributor<CB, H>where
H: UnwindSafe,
CB: UnwindSafe,
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> 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