pub struct Reactor { /* private fields */ }Implementations§
Source§impl Reactor
impl Reactor
pub fn new( pool_size: usize, events_capacity: usize, poll_timeout_ms: u64, ) -> Result<Self>
pub fn run(&self) -> Result<()>
pub fn get_shutdown_handle(&self) -> ShutdownHandle<'_>
pub fn dispatch_event(&self, event: Event) -> Result<()>
pub fn spawn_compute<F>(&self, task: F, priority: TaskPriority)
pub fn get_compute_metrics(&self) -> Arc<ComputePoolMetrics>
pub fn get_events(&self) -> Arc<RwLock<Events>>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Reactor
impl !RefUnwindSafe for Reactor
impl Send for Reactor
impl Sync for Reactor
impl Unpin for Reactor
impl !UnwindSafe for Reactor
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