pub enum ServerToClientPacket {
Response(ServerResponse),
Event(OverlayEvent),
}Expand description
Describes a packet sent from server to client.
Variants§
Response(ServerResponse)
The packet is a response to a specific request.
Event(OverlayEvent)
The packet is an event notification.
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for ServerToClientPacket
impl<'__de, __Context> BorrowDecode<'__de, __Context> for ServerToClientPacket
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl<__Context> Decode<__Context> for ServerToClientPacket
impl<__Context> Decode<__Context> for ServerToClientPacket
Auto Trait Implementations§
impl Freeze for ServerToClientPacket
impl RefUnwindSafe for ServerToClientPacket
impl Send for ServerToClientPacket
impl Sync for ServerToClientPacket
impl Unpin for ServerToClientPacket
impl UnsafeUnpin for ServerToClientPacket
impl UnwindSafe for ServerToClientPacket
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