pub enum StreamMsg<S> {
Str(S),
Ping,
Pong,
}
Available on crate feature
server
only.Expand description
Request/response message for streaming JSON-RPC servers.
S should be some string-like type. For TCP it’s String
, for WebSocket
it’s Utf8Bytes
.
Variants§
Trait Implementations§
impl<S: Eq> Eq for StreamMsg<S>
impl<S> StructuralPartialEq for StreamMsg<S>
Auto Trait Implementations§
impl<S> Freeze for StreamMsg<S>where
S: Freeze,
impl<S> RefUnwindSafe for StreamMsg<S>where
S: RefUnwindSafe,
impl<S> Send for StreamMsg<S>where
S: Send,
impl<S> Sync for StreamMsg<S>where
S: Sync,
impl<S> Unpin for StreamMsg<S>where
S: Unpin,
impl<S> UnwindSafe for StreamMsg<S>where
S: 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