pub enum Message {
Show 31 variants Link(Link), Send(Send), Exit(Exit), Unlink(Unlink), NodeLink(NodeLink), RegSend(RegSend), GroupLeader(GroupLeader), Exit2(Exit2), SendTt(SendTt), ExitTt(ExitTt), RegSendTt(RegSendTt), Exit2Tt(Exit2Tt), MonitorP(MonitorP), DemonitorP(DemonitorP), MonitorPExit(MonitorPExit), SendSender(SendSender), SendSenderTt(SendSenderTt), PayloadExit(PayloadExit), PayloadExitTt(PayloadExitTt), PayloadExit2(PayloadExit2), PayloadExit2Tt(PayloadExit2Tt), PayloadMonitorPExit(PayloadMonitorPExit), SpawnRequest(SpawnRequest), SpawnRequestTt(SpawnRequestTt), SpawnReply(SpawnReply), SpawnReplyTt(SpawnReplyTt), UnlinkId(UnlinkId), UnlinkIdAck(UnlinkIdAck), AliasSend(AliasSend), AliasSendTt(AliasSendTt), Tick,
}
Expand description

Message.

Variants§

§

Send(Send)

§

Exit(Exit)

§

RegSend(RegSend)

§

GroupLeader(GroupLeader)

§

Exit2(Exit2)

§

SendTt(SendTt)

§

ExitTt(ExitTt)

§

RegSendTt(RegSendTt)

§

Exit2Tt(Exit2Tt)

§

MonitorP(MonitorP)

§

DemonitorP(DemonitorP)

§

MonitorPExit(MonitorPExit)

§

SendSender(SendSender)

§

SendSenderTt(SendSenderTt)

§

PayloadExit(PayloadExit)

§

PayloadExitTt(PayloadExitTt)

§

PayloadExit2(PayloadExit2)

§

PayloadExit2Tt(PayloadExit2Tt)

§

PayloadMonitorPExit(PayloadMonitorPExit)

§

SpawnRequest(SpawnRequest)

§

SpawnRequestTt(SpawnRequestTt)

§

SpawnReply(SpawnReply)

§

SpawnReplyTt(SpawnReplyTt)

§

UnlinkId(UnlinkId)

§

UnlinkIdAck(UnlinkIdAck)

§

AliasSend(AliasSend)

§

AliasSendTt(AliasSendTt)

§

Tick

Tick message used for keeping alive a connection.

See also: net_ticktime parameter

Implementations§

source§

impl Message

Makes a Link message.

source

pub fn send(to_pid: Pid, message: Term) -> Self

Makes a Send message.

source

pub fn exit(from_pid: Pid, to_pid: Pid, reason: Term) -> Self

Makes a Exit message.

Makes a Unlink message.

Makes a NodeLink message.

source

pub fn reg_send(from_pid: Pid, to_name: Atom, message: Term) -> Self

Makes a RegSend message.

source

pub fn group_leader(from_pid: Pid, to_pid: Pid) -> Self

Makes a GroupLeader message.

source

pub fn exit2(from_pid: Pid, to_pid: Pid, reason: Term) -> Self

Makes a Exit2 message.

source

pub fn send_tt(to_pid: Pid, message: Term, trace_token: Term) -> Self

Makes a SendTt message.

source

pub fn exit_tt( from_pid: Pid, to_pid: Pid, reason: Term, trace_token: Term ) -> Self

Makes a ExitTt message.

source

pub fn reg_send_tt( from_pid: Pid, to_name: Atom, message: Term, trace_token: Term ) -> Self

Makes a RegSendTt message.

source

pub fn exit2_tt( from_pid: Pid, to_pid: Pid, reason: Term, trace_token: Term ) -> Self

Makes a Exit2Tt message.

source

pub fn monitor_p( from_pid: Pid, to_proc: PidOrAtom, reference: Reference ) -> Self

Makes as MonitorP message.

source

pub fn demonitor_p( from_pid: Pid, to_proc: PidOrAtom, reference: Reference ) -> Self

Makes as DemonitorP message.

source

pub fn monitor_p_exit( from_proc: PidOrAtom, to_pid: Pid, reference: Reference, reason: Term ) -> Self

Makes as MonitorPExit message.

source

pub fn send_sender(from_pid: Pid, to_pid: Pid, message: Term) -> Self

Makes a SendSender message.

source

pub fn send_sender_tt( from_pid: Pid, to_pid: Pid, message: Term, trace_token: Term ) -> Self

Makes a SendSenderTt message.

source

pub fn payload_exit(from_pid: Pid, to_pid: Pid, reason: Term) -> Self

Makes a PayloadExit message.

source

pub fn payload_exit_tt( from_pid: Pid, to_pid: Pid, reason: Term, trace_token: Term ) -> Self

Makes a PayloadExitTt message.

source

pub fn payload_exit2(from_pid: Pid, to_pid: Pid, reason: Term) -> Self

Makes a PayloadExit2 message.

source

pub fn payload_exit2_tt( from_pid: Pid, to_pid: Pid, reason: Term, trace_token: Term ) -> Self

Makes a PayloadExit2Tt message.

source

pub fn payload_monitor_p_exit( from_proc: PidOrAtom, to_pid: Pid, reference: Reference, reason: Term ) -> Self

Makes a PayloadMonitorPExit message.

source

pub fn spawn_request( req_id: Reference, from_pid: Pid, group_leader: Pid, mfa: Mfa, opt_list: List, arg_list: List ) -> Self

Makes a SpawnRequest message.

source

pub fn spawn_request_tt( req_id: Reference, from_pid: Pid, group_leader: Pid, mfa: Mfa, opt_list: List, arg_list: List, trace_token: Term ) -> Self

Makes a SpawnRequestTt message.

source

pub fn spawn_reply( req_id: Reference, to_pid: Pid, flags: FixInteger, result: PidOrAtom ) -> Self

Makes a SpawnReply message.

source

pub fn spawn_reply_tt( req_id: Reference, to_pid: Pid, flags: FixInteger, result: PidOrAtom, trace_token: Term ) -> Self

Makes a SpawnReplyTt message.

Makes a UnlinkId message.

Makes a UnlinkIdAck message.

source

pub fn alias_send(from_pid: Pid, alias: Reference, message: Term) -> Self

Makes a AliasSend message.

source

pub fn alias_send_tt( from_pid: Pid, alias: Reference, message: Term, trace_token: Term ) -> Self

Makes a AliasSendTt message.

source

pub fn write_into<W: Write>(self, writer: &mut W) -> Result<(), SendError>

Serialize the Message into a byte buffer

source

pub fn read_from<R: Read>(reader: &mut R) -> Result<Self, RecvError>

Deserialize a given byte buffer into a Message. Returns [Err(_)] if the message is malformed

Trait Implementations§

source§

impl Clone for Message

source§

fn clone(&self) -> Message

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Message

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq<Message> for Message

source§

fn eq(&self, other: &Message) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for Message

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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, U> Into<U> for Twhere 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> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> TryAsRef<T> for T

source§

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

§

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 Twhere U: TryFrom<T>,

§

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.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V