pub enum PingPayloadUnion {
Ping(Ping),
Pong(Pong),
}
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for PingPayloadUnion
impl Clone for PingPayloadUnion
Source§fn clone(&self) -> PingPayloadUnion
fn clone(&self) -> PingPayloadUnion
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 PingPayloadUnion
impl Debug for PingPayloadUnion
Source§impl Default for PingPayloadUnion
impl Default for PingPayloadUnion
Source§fn default() -> PingPayloadUnion
fn default() -> PingPayloadUnion
Returns the “default value” for a type. Read more
Source§impl Display for PingPayloadUnion
impl Display for PingPayloadUnion
Source§impl From<Ping> for PingPayloadUnion
impl From<Ping> for PingPayloadUnion
Source§fn from(item: Ping) -> PingPayloadUnion
fn from(item: Ping) -> PingPayloadUnion
Converts to this type from the input type.
Source§impl From<Pong> for PingPayloadUnion
impl From<Pong> for PingPayloadUnion
Source§fn from(item: Pong) -> PingPayloadUnion
fn from(item: Pong) -> PingPayloadUnion
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for PingPayloadUnion
impl RefUnwindSafe for PingPayloadUnion
impl Send for PingPayloadUnion
impl Sync for PingPayloadUnion
impl Unpin for PingPayloadUnion
impl UnwindSafe for PingPayloadUnion
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)