Node

Struct Node 

Source
pub struct Node { /* private fields */ }

Implementations§

Source§

impl Node

Source

pub async fn erlang_system_info( &self, remote_node: &str, item: &str, ) -> Result<OwnedTerm>

Source

pub async fn erlang_statistics( &self, remote_node: &str, item: &str, ) -> Result<OwnedTerm>

Source

pub async fn erlang_memory(&self, remote_node: &str) -> Result<OwnedTerm>

Source

pub async fn erlang_processes(&self, remote_node: &str) -> Result<OwnedTerm>

Source

pub async fn erlang_process_info( &self, remote_node: &str, pid: OwnedTerm, items: Vec<Atom>, ) -> Result<OwnedTerm>

Source

pub async fn erlang_list_to_pid( &self, remote_node: &str, pid_str: &str, ) -> Result<OwnedTerm>

Source§

impl Node

Source

pub fn new(name: impl Into<String>, cookie: impl Into<String>) -> Self

Source

pub fn new_hidden(name: impl Into<String>, cookie: impl Into<String>) -> Self

Source

pub async fn connect_to( name: impl Into<String>, cookie: impl Into<String>, remote_node: impl Into<String>, ) -> Result<Self>

Source

pub async fn connect_to_hidden( name: impl Into<String>, cookie: impl Into<String>, remote_node: impl Into<String>, ) -> Result<Self>

Source

pub fn registry(&self) -> Arc<ProcessRegistry>

Source

pub async fn start(&mut self, port: u16) -> Result<()>

Source

pub async fn connect(&self, remote_node: impl Into<String>) -> Result<()>

Source

pub async fn spawn<P: Process>(&self, process: P) -> Result<ExternalPid>

Source

pub async fn register(&self, name: Atom, pid: ExternalPid) -> Result<()>

Source

pub async fn unregister(&self, name: &Atom) -> Result<()>

Source

pub async fn whereis(&self, name: &Atom) -> Option<ExternalPid>

Source

pub async fn registered(&self) -> Vec<Atom>

Source

pub async fn send(&self, to: &ExternalPid, message: OwnedTerm) -> Result<()>

Source

pub async fn send_to_name(&self, to: &Atom, message: OwnedTerm) -> Result<()>

Source

pub fn make_reference(&self) -> ExternalReference

Source

pub async fn monitor( &self, from: &ExternalPid, to: &ExternalPid, ) -> Result<ExternalReference>

Source

pub async fn demonitor( &self, from: &ExternalPid, to: &ExternalPid, reference: &ExternalReference, ) -> Result<()>

Source

pub fn name(&self) -> &Atom

Source

pub fn creation(&self) -> u32

Source

pub async fn process_count(&self) -> usize

Source

pub fn connections(&self) -> Arc<DashMap<String, Arc<Mutex<Connection>>>>

Source

pub fn cookie(&self) -> &str

Source

pub async fn rpc_call( &self, remote_node: &str, module: &str, function: &str, args: Vec<OwnedTerm>, ) -> Result<OwnedTerm>

Source

pub async fn rpc_call_with_timeout( &self, remote_node: &str, module: &str, function: &str, args: Vec<OwnedTerm>, timeout: Duration, ) -> Result<OwnedTerm>

Source

pub async fn rpc_call_raw( &self, remote_node: &str, module: &str, function: &str, args: Vec<OwnedTerm>, ) -> Result<OwnedTerm>

Source

pub async fn rpc_call_raw_with_timeout( &self, remote_node: &str, module: &str, function: &str, args: Vec<OwnedTerm>, timeout: Duration, ) -> Result<OwnedTerm>

Auto Trait Implementations§

§

impl Freeze for Node

§

impl !RefUnwindSafe for Node

§

impl Send for Node

§

impl Sync for Node

§

impl Unpin for Node

§

impl !UnwindSafe for Node

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more