pub struct WsCommand<P>where
P: Serialize,{
pub id: u64,
pub method: String,
pub params: Option<P>,
}Fields§
§id: u64§method: String§params: Option<P>Trait Implementations§
Source§impl<P> Serialize for WsCommand<P>where
P: Serialize,
impl<P> Serialize for WsCommand<P>where
P: Serialize,
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl<P> Freeze for WsCommand<P>where
P: Freeze,
impl<P> RefUnwindSafe for WsCommand<P>where
P: RefUnwindSafe,
impl<P> Send for WsCommand<P>where
P: Send,
impl<P> Sync for WsCommand<P>where
P: Sync,
impl<P> Unpin for WsCommand<P>where
P: Unpin,
impl<P> UnsafeUnpin for WsCommand<P>where
P: UnsafeUnpin,
impl<P> UnwindSafe for WsCommand<P>where
P: UnwindSafe,
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