Enum minetest_protocol::wire::packet::ControlBody
source · pub enum ControlBody {
Ack(AckBody),
SetPeerId(SetPeerIdBody),
Ping,
Disconnect,
}
Variants§
Implementations§
source§impl ControlBody
impl ControlBody
pub fn into_inner(self) -> InnerBody
Trait Implementations§
source§impl Clone for ControlBody
impl Clone for ControlBody
source§fn clone(&self) -> ControlBody
fn clone(&self) -> ControlBody
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ControlBody
impl Debug for ControlBody
source§impl Deserialize for ControlBody
impl Deserialize for ControlBody
fn deserialize(deser: &mut Deserializer<'_>) -> DeserializeResult<Self>
source§impl PartialEq<ControlBody> for ControlBody
impl PartialEq<ControlBody> for ControlBody
source§fn eq(&self, other: &ControlBody) -> bool
fn eq(&self, other: &ControlBody) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.