pub struct ServiceCommandTask<F, LF> { /* private fields */ }Expand description
Represents a task encapsulating a ServiceCommand and a channel for its execution result.
This struct combines a ServiceCommand with a mechanism to send back the
result of its execution. It’s used to queue tasks for the worker thread to process and
allows for asynchronous communication of the task’s outcome.
§Type Parameters
F: The type of the service factory used in theServiceCommand.LF: The type of the listener factory used in theServiceCommand.
Implementations§
Source§impl<F, LF> ServiceCommandTask<F, LF>
impl<F, LF> ServiceCommandTask<F, LF>
Auto Trait Implementations§
impl<F, LF> Freeze for ServiceCommandTask<F, LF>
impl<F, LF> !RefUnwindSafe for ServiceCommandTask<F, LF>
impl<F, LF> Send for ServiceCommandTask<F, LF>
impl<F, LF> Sync for ServiceCommandTask<F, LF>
impl<F, LF> Unpin for ServiceCommandTask<F, LF>
impl<F, LF> !UnwindSafe for ServiceCommandTask<F, LF>
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