pub enum NoMessages {}Expand description
A type representing no messages. Use this as ClientMsg or ServerMsg
for endpoints that are unidirectional (e.g., server-push-only streams).
Does not implement Serialize/DeserializeOwned, so it won’t conflict
with the blanket JSON impl. Encoding always fails; decoding always fails.
Trait Implementations§
Source§impl Clone for NoMessages
impl Clone for NoMessages
Auto Trait Implementations§
impl Freeze for NoMessages
impl RefUnwindSafe for NoMessages
impl Send for NoMessages
impl Sync for NoMessages
impl Unpin for NoMessages
impl UnsafeUnpin for NoMessages
impl UnwindSafe for NoMessages
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