pub enum NodeSessionMessage {
MessageReceived(NetworkMessage),
SendMessage(NodeMessage),
GetAuthenticationState(RpcReplyPort<bool>),
}
Expand description
Message from the TCP ractor_cluster::net::session::Session
actor and the
monitoring Sesson actor
Variants§
MessageReceived(NetworkMessage)
A network message was received from the network
SendMessage(NodeMessage)
Send a message over the node channel to the remote node()
GetAuthenticationState(RpcReplyPort<bool>)
Retrieve whether the session is authenticated or not
Trait Implementations§
source§impl Message for NodeSessionMessage
impl Message for NodeSessionMessage
source§fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
Convert a BoxedMessage to this concrete type
source§fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
Convert this message to a BoxedMessage
source§fn serializable() -> bool
fn serializable() -> bool
Determines if this type is serializable
source§fn serialize(self) -> Result<SerializedMessage, BoxedDowncastErr>
fn serialize(self) -> Result<SerializedMessage, BoxedDowncastErr>
Serializes this message (if supported)
source§fn deserialize(bytes: SerializedMessage) -> Result<Self, BoxedDowncastErr>
fn deserialize(bytes: SerializedMessage) -> Result<Self, BoxedDowncastErr>
Deserialize binary data to this message type
Auto Trait Implementations§
impl Freeze for NodeSessionMessage
impl !RefUnwindSafe for NodeSessionMessage
impl Send for NodeSessionMessage
impl Sync for NodeSessionMessage
impl Unpin for NodeSessionMessage
impl !UnwindSafe for NodeSessionMessage
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