Fix dioxus-fullstack::Streaming<T,E> only deserializing one client value (#4975)
* dioxus-fullstack::Streaming: decode multiple client values from Bytes * small nits * remove the bidirectional stream since it doesn't work in the browser * final cleanups * nits --------- Co-authored-by: Olivier Kannengieser <okanne@gmail.com> Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
This commit is contained in:
3 files changed
+89
-122
No files matched your search
@@ -4,7 +4,7 @@ use serde::{de::DeserializeOwned, Serialize};
|
||||
/// A trait for encoding and decoding data.
|
||||
///
|
||||
/// This takes an owned self to make it easier for zero-copy encodings.
|
||||
pub trait Encoding {
|
||||
pub trait Encoding: 'static {
|
||||
fn content_type() -> &'static str;
|
||||
fn stream_content_type() -> &'static str;
|
||||
fn to_bytes(data: impl Serialize) -> Option<Bytes> {
|
||||
|
||||
Reference in new issue
Block a user