pub struct SchedulerClient { /* private fields */ }Expand description
Client for communicating with the worker subsystem’s scheduler
Implementations§
Source§impl SchedulerClient
impl SchedulerClient
pub fn new( sender: Sender<(SchedulerRequest, Sender<SchedulerResponse>)>, pending_requests: Arc<Mutex<VecDeque<(SchedulerRequest, Sender<SchedulerResponse>)>>>, next_handle: Arc<AtomicU64>, running: Arc<AtomicBool>, ) -> Self
Trait Implementations§
Source§impl Scheduler for SchedulerClient
impl Scheduler for SchedulerClient
Auto Trait Implementations§
impl Freeze for SchedulerClient
impl RefUnwindSafe for SchedulerClient
impl Send for SchedulerClient
impl Sync for SchedulerClient
impl Unpin for SchedulerClient
impl UnwindSafe for SchedulerClient
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§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