alef 0.24.13

Opinionated polyglot binding generator for Rust libraries
Documentation
1
2
3
4
5
6
7
8
9
impl {{ wrapper_name }} {
    /// Create a new bridge wrapping an Elixir PID.
    ///
    /// The PID is stored directly (it is Copy + Send + Sync).
    /// Messages are dispatched via the trait methods using channels for sync/async dispatch.
    pub fn new(pid: rustler::LocalPid) -> Self {
        Self { inner: pid }
    }
}