beamr 0.13.1

A Rust runtime with the BEAM's execution model, targeting Gleam
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::atom::Atom;
use crate::scheduler::{Interest, ReadinessError, ReadinessToken};
use std::os::fd::RawFd;

/// In-slice readiness registration and one-shot rearm facility.
pub trait ReadinessFacility: Send + Sync {
    fn register(
        &self,
        fd: RawFd,
        interest: Interest,
        pid: u64,
        marker: Atom,
    ) -> Result<ReadinessToken, ReadinessError>;

    fn rearm(&self, token: &ReadinessToken, interest: Interest) -> Result<(), ReadinessError>;
}