pub struct DistNode {
local_node: LocalNode,
rx: Receiver<Message>,
_task_handle: Task<()>,
_tick_task_handle: Task<()>,
}Expand description
A simple distributed Erlang client node.
Fields§
§local_node: LocalNode§rx: Receiver<Message>§_task_handle: Task<()>§_tick_task_handle: Task<()>Implementations§
Source§impl DistNode
impl DistNode
Sourcepub async fn connect(
local_name: String,
peer_name: String,
cookie: String,
) -> Result<Self>
pub async fn connect( local_name: String, peer_name: String, cookie: String, ) -> Result<Self>
Connect to an Erlang node and start receiving messages.
§Arguments
local_name- Our local node name (e.g., “cryptic_tui@127.0.0.1”)peer_name- The remote Erlang node name (e.g., “admin@localhost”)cookie- The Erlang cookie for authentication
Auto Trait Implementations§
impl Freeze for DistNode
impl RefUnwindSafe for DistNode
impl Send for DistNode
impl Sync for DistNode
impl !Unpin for DistNode
impl UnwindSafe for DistNode
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more