Trait caesar_core::shared::JsonPacketSender
source · pub trait JsonPacketSender {
// Required method
fn send_json_packet(&self, packet: JsonPacket);
}Expand description
Represents a sender of JSON packets.
This trait is used to send JSON packets to a JsonPacket receiver. The
send_json_packet method is used to send a JsonPacket packet.
Required Methods§
sourcefn send_json_packet(&self, packet: JsonPacket)
fn send_json_packet(&self, packet: JsonPacket)
Sends a JsonPacket packet to a receiver.
This method sends a JsonPacket packet to a receiver. The packet argument
is the packet to send.
Implementors§
impl JsonPacketSender for Sender
Implementation of JsonPacketSender for Sender struct.
This implementation of JsonPacketSender for Sender struct provides a method
send_json_packet to send a JsonPacket packet.