alef 0.25.37

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, name: String) -> Self {
        Self { inner: pid, cached_name: name }
    }
}