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 duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const 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
Source§type Output = ControlBody
type Output = ControlBody
Output should be Self, except for wrapper types.
fn deserialize(deser: &mut Deserializer<'_>) -> DeserializeResult<Self>
Source§impl PartialEq for ControlBody
impl PartialEq for ControlBody
Source§impl Serialize for ControlBody
impl Serialize for ControlBody
type Input = ControlBody
fn serialize<S: Serializer>(value: &Self::Input, ser: &mut S) -> SerializeResult
impl StructuralPartialEq for ControlBody
Auto Trait Implementations§
impl Freeze for ControlBody
impl RefUnwindSafe for ControlBody
impl Send for ControlBody
impl Sync for ControlBody
impl Unpin for ControlBody
impl UnwindSafe for ControlBody
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