pub struct Poller<S, L = Identity> {
pub stream: S,
pub heartbeat: BoxFuture<'static, ()>,
pub layer: L,
/* private fields */
}
Expand description
A poller type that allows fetching from a stream and a heartbeat future that can be used to do periodic tasks
Fields§
§stream: S
The stream of jobs
heartbeat: BoxFuture<'static, ()>
The heartbeat for the backend
layer: L
The tower middleware provided by the backend
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<S, L> Freeze for Poller<S, L>
impl<S, L = Identity> !RefUnwindSafe for Poller<S, L>
impl<S, L> Send for Poller<S, L>
impl<S, L = Identity> !Sync for Poller<S, L>
impl<S, L> Unpin for Poller<S, L>
impl<S, L = Identity> !UnwindSafe for Poller<S, L>
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