Enum rings_core::message::MessageHandlerEvent
source · pub enum MessageHandlerEvent {
Connect(Did),
Disconnect(Did),
AnswerOffer(ConnectNodeSend),
AcceptAnswer(ConnectNodeReport),
ForwardPayload(Option<Did>),
JoinDHT(Did),
SendDirectMessage(Message, Did),
SendMessage(Message, Did),
SendReportMessage(Message),
ResetDestination(Did),
StorageStore(VirtualNode),
}Expand description
MessageHandlerEvent that will be handled by Swarm.
Variants§
Connect(Did)
Instructs the swarm to connect to a peer.
Disconnect(Did)
Instructs the swarm to disconnect from a peer.
AnswerOffer(ConnectNodeSend)
Instructs the swarm to answer an offer inside payload.
AcceptAnswer(ConnectNodeReport)
Instructs the swarm to accept an answer inside payload.
ForwardPayload(Option<Did>)
Tell swarm to forward the payload to destination.
JoinDHT(Did)
Instructs the swarm to notify the dht about new peer.
SendDirectMessage(Message, Did)
Instructs the swarm to send a direct message to a peer.
SendMessage(Message, Did)
Instructs the swarm to send a message to a peer via the dht network.
SendReportMessage(Message)
Instructs the swarm to send a message as a response to the received message.
ResetDestination(Did)
Instructs the swarm to send a message to a peer via the dht network with a specific next hop.
StorageStore(VirtualNode)
Instructs the swarm to store vnode.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for MessageHandlerEvent
impl Send for MessageHandlerEvent
impl Sync for MessageHandlerEvent
impl Unpin for MessageHandlerEvent
impl UnwindSafe for MessageHandlerEvent
Blanket Implementations§
§impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedExplicit<'a> for Twhere T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere T: 'a,
§impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedImplicit<'a> for Twhere T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere T: 'a,
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