Closed prehonor closed 2 months ago
I'm afraid I'm going to need more details
I'm afraid I'm going to need more details
rror[E0277]: the trait bound BincodeSerdeCodec: codee::traits::Decoder<TestCommunication> is not satisfied
--> ui_leptos/src/main.rs:38:9 |
38 | } = use_websocket::<TestCommunication, BincodeSerdeCodec>("ws://127.0.0.1:3000/ws"); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait codee::traits::Decoder<TestCommunication> is not implemented for BincodeSerdeCodec |
---|
= help: the following other types implement trait codee::traits::Decoder<T>
:
<codee::binary::from_to_bytes::FromToBytesCodec as codee::traits::Decoder
error[E0277]: the trait bound BincodeSerdeCodec: codee::traits::Encoder<TestCommunication> is not satisfied
--> ui_leptos/src/main.rs:38:9 |
38 | } = use_websocket::<TestCommunication, BincodeSerdeCodec>("ws://127.0.0.1:3000/ws"); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait codee::traits::Encoder<TestCommunication> is not implemented for BincodeSerdeCodec |
---|
= help: the following other types implement trait codee::traits::Encoder<T>
:
<codee::binary::from_to_bytes::FromToBytesCodec as codee::traits::Encoder
error[E0277]: the trait bound BincodeSerdeCodec: codee::hybrid::IsBinary<TestCommunication, _> is not satisfied
--> ui_leptos/src/main.rs:38:44 |
38 | } = use_websocket::<TestCommunication, BincodeSerdeCodec>("ws://127.0.0.1:3000/ws"); | ^^^^^^^^^^^^^^^^^ the trait codee::hybrid::IsBinary<TestCommunication, _> is not implemented for BincodeSerdeCodec |
---|
note: required by a bound in use_websocket
--> /space/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/leptos-use-0.12.0/src/use_websocket.rs:243:8
|
232 | pub fn use_websocket<T, C>(
| ------------- required by a bound in this function
...
243 | C: IsBinary<T, <C as Decoderuse_websocket
error[E0277]: the trait bound BincodeSerdeCodec: codee::hybrid::HybridDecoder<TestCommunication, _> is not satisfied
--> ui_leptos/src/main.rs:38:44 |
38 | } = use_websocket::<TestCommunication, BincodeSerdeCodec>("ws://127.0.0.1:3000/ws"); | ^^^^^^^^^^^^^^^^^ the trait codee::hybrid::HybridDecoder<TestCommunication, _> is not implemented for BincodeSerdeCodec |
---|
note: required by a bound in use_websocket
--> /space/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/leptos-use-0.12.0/src/use_websocket.rs:244:8
|
232 | pub fn use_websocket<T, C>(
| ------------- required by a bound in this function
...
244 | C: HybridDecoder<T, <C as Decoderuse_websocket
error[E0277]: the trait bound BincodeSerdeCodec: codee::hybrid::HybridEncoder<TestCommunication, _> is not satisfied
--> ui_leptos/src/main.rs:38:44 |
38 | } = use_websocket::<TestCommunication, BincodeSerdeCodec>("ws://127.0.0.1:3000/ws"); | ^^^^^^^^^^^^^^^^^ the trait codee::hybrid::HybridEncoder<TestCommunication, _> is not implemented for BincodeSerdeCodec |
---|
note: required by a bound in use_websocket
--> /space/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/leptos-use-0.12.0/src/use_websocket.rs:245:8
|
232 | pub fn use_websocket<T, C>(
| ------------- required by a bound in this function
...
245 | C: HybridEncoder<T, <C as Encoderuse_websocket
error[E0277]: the trait bound BincodeSerdeCodec: codee::hybrid::IsBinary<TestCommunication, _> is not satisfied
--> ui_leptos/src/main.rs:38:9 |
38 | } = use_websocket::<TestCommunication, BincodeSerdeCodec>("ws://127.0.0.1:3000/ws"); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait codee::hybrid::IsBinary<TestCommunication, _> is not implemented for BincodeSerdeCodec |
---|
note: required by a bound in use_websocket
--> /space/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/leptos-use-0.12.0/src/use_websocket.rs:243:8
|
232 | pub fn use_websocket<T, C>(
| ------------- required by a bound in this function
...
243 | C: IsBinary<T, <C as Decoderuse_websocket
error[E0277]: the trait bound BincodeSerdeCodec: codee::hybrid::HybridDecoder<TestCommunication, _> is not satisfied
--> ui_leptos/src/main.rs:38:9 |
38 | } = use_websocket::<TestCommunication, BincodeSerdeCodec>("ws://127.0.0.1:3000/ws"); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait codee::hybrid::HybridDecoder<TestCommunication, _> is not implemented for BincodeSerdeCodec |
---|
note: required by a bound in use_websocket
--> /space/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/leptos-use-0.12.0/src/use_websocket.rs:244:8
|
232 | pub fn use_websocket<T, C>(
| ------------- required by a bound in this function
...
244 | C: HybridDecoder<T, <C as Decoderuse_websocket
error[E0277]: the trait bound BincodeSerdeCodec: codee::hybrid::HybridEncoder<TestCommunication, _> is not satisfied
--> ui_leptos/src/main.rs:38:9 |
38 | } = use_websocket::<TestCommunication, BincodeSerdeCodec>("ws://127.0.0.1:3000/ws"); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait codee::hybrid::HybridEncoder<TestCommunication, _> is not implemented for BincodeSerdeCodec |
---|
note: required by a bound in use_websocket
--> /space/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/leptos-use-0.12.0/src/use_websocket.rs:245:8
|
232 | pub fn use_websocket<T, C>(
| ------------- required by a bound in this function
...
245 | C: HybridEncoder<T, <C as Encoderuse_websocket
error[E0277]: the trait bound BincodeSerdeCodec: codee::traits::Encoder<TestCommunication> is not satisfied
--> ui_leptos/src/main.rs:51:9 |
51 | open(); | ^^^^^^ the trait codee::traits::Encoder<TestCommunication> is not implemented for BincodeSerdeCodec |
---|
= help: the following other types implement trait `codee::traits::Encoder<T>`:
<codee::binary::from_to_bytes::FromToBytesCodec as codee::traits::Encoder<bool>>
<codee::binary::from_to_bytes::FromToBytesCodec as codee::traits::Encoder<f32>>
<codee::binary::from_to_bytes::FromToBytesCodec as codee::traits::Encoder<f64>>
<codee::binary::from_to_bytes::FromToBytesCodec as codee::traits::Encoder<i128>>
<codee::binary::from_to_bytes::FromToBytesCodec as codee::traits::Encoder<i16>>
<codee::binary::from_to_bytes::FromToBytesCodec as codee::traits::Encoder<i32>>
<codee::binary::from_to_bytes::FromToBytesCodec as codee::traits::Encoder<i64>>
<codee::binary::from_to_bytes::FromToBytesCodec as codee::traits::Encoder<i8>>
and 10 others
note: required by a bound in use_websocket
--> /space/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/leptos-use-0.12.0/src/use_websocket.rs:242:8
|
232 | pub fn use_websocket<T, C>(
| ------------- required by a bound in this function
...
242 | C: Encoderuse_websocket
error[E0277]: the trait bound BincodeSerdeCodec: codee::traits::Decoder<TestCommunication> is not satisfied
--> ui_leptos/src/main.rs:51:9 |
51 | open(); | ^^^^^^ the trait codee::traits::Decoder<TestCommunication> is not implemented for BincodeSerdeCodec |
---|
= help: the following other types implement trait `codee::traits::Decoder<T>`:
<codee::binary::from_to_bytes::FromToBytesCodec as codee::traits::Decoder<bool>>
<codee::binary::from_to_bytes::FromToBytesCodec as codee::traits::Decoder<f32>>
<codee::binary::from_to_bytes::FromToBytesCodec as codee::traits::Decoder<f64>>
<codee::binary::from_to_bytes::FromToBytesCodec as codee::traits::Decoder<i128>>
<codee::binary::from_to_bytes::FromToBytesCodec as codee::traits::Decoder<i16>>
<codee::binary::from_to_bytes::FromToBytesCodec as codee::traits::Decoder<i32>>
<codee::binary::from_to_bytes::FromToBytesCodec as codee::traits::Decoder<i64>>
<codee::binary::from_to_bytes::FromToBytesCodec as codee::traits::Decoder<i8>>
and 10 others
note: required by a bound in use_websocket
--> /space/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/leptos-use-0.12.0/src/use_websocket.rs:242:21
|
232 | pub fn use_websocket<T, C>(
| ------------- required by a bound in this function
...
242 | C: Encoderuse_websocket
error[E0277]: the trait bound BincodeSerdeCodec: codee::hybrid::IsBinary<TestCommunication, _> is not satisfied
--> ui_leptos/src/main.rs:51:9 |
51 | open(); | ^^^^^^ the trait codee::hybrid::IsBinary<TestCommunication, _> is not implemented for BincodeSerdeCodec |
---|
note: required by a bound in use_websocket
--> /space/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/leptos-use-0.12.0/src/use_websocket.rs:243:8
|
232 | pub fn use_websocket<T, C>(
| ------------- required by a bound in this function
...
243 | C: IsBinary<T, <C as Decoderuse_websocket
error[E0277]: the trait bound BincodeSerdeCodec: codee::hybrid::HybridDecoder<TestCommunication, _> is not satisfied
--> ui_leptos/src/main.rs:51:9 |
51 | open(); | ^^^^^^ the trait codee::hybrid::HybridDecoder<TestCommunication, _> is not implemented for BincodeSerdeCodec |
---|
note: required by a bound in use_websocket
--> /space/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/leptos-use-0.12.0/src/use_websocket.rs:244:8
|
232 | pub fn use_websocket<T, C>(
| ------------- required by a bound in this function
...
244 | C: HybridDecoder<T, <C as Decoderuse_websocket
error[E0277]: the trait bound BincodeSerdeCodec: codee::hybrid::HybridEncoder<TestCommunication, _> is not satisfied
--> ui_leptos/src/main.rs:51:9 |
51 | open(); | ^^^^^^ the trait codee::hybrid::HybridEncoder<TestCommunication, _> is not implemented for BincodeSerdeCodec |
---|
note: required by a bound in use_websocket
--> /space/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/leptos-use-0.12.0/src/use_websocket.rs:245:8
|
232 | pub fn use_websocket<T, C>(
| ------------- required by a bound in this function
...
245 | C: HybridEncoder<T, <C as Encoderuse_websocket
error[E0277]: the trait bound BincodeSerdeCodec: codee::traits::Encoder<TestCommunication> is not satisfied
--> ui_leptos/src/main.rs:54:9 |
54 | close(); | ^^^^^^^ the trait codee::traits::Encoder<TestCommunication> is not implemented for BincodeSerdeCodec |
---|
= help: the following other types implement trait `codee::traits::Encoder<T>`:
<codee::binary::from_to_bytes::FromToBytesCodec as codee::traits::Encoder<bool>>
<codee::binary::from_to_bytes::FromToBytesCodec as codee::traits::Encoder<f32>>
<codee::binary::from_to_bytes::FromToBytesCodec as codee::traits::Encoder<f64>>
<codee::binary::from_to_bytes::FromToBytesCodec as codee::traits::Encoder<i128>>
<codee::binary::from_to_bytes::FromToBytesCodec as codee::traits::Encoder<i16>>
<codee::binary::from_to_bytes::FromToBytesCodec as codee::traits::Encoder<i32>>
<codee::binary::from_to_bytes::FromToBytesCodec as codee::traits::Encoder<i64>>
<codee::binary::from_to_bytes::FromToBytesCodec as codee::traits::Encoder<i8>>
and 10 others
note: required by a bound in use_websocket
--> /space/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/leptos-use-0.12.0/src/use_websocket.rs:242:8
|
232 | pub fn use_websocket<T, C>(
| ------------- required by a bound in this function
...
242 | C: Encoderuse_websocket
error[E0277]: the trait bound BincodeSerdeCodec: codee::traits::Decoder<TestCommunication> is not satisfied
--> ui_leptos/src/main.rs:54:9 |
54 | close(); | ^^^^^^^ the trait codee::traits::Decoder<TestCommunication> is not implemented for BincodeSerdeCodec |
---|
= help: the following other types implement trait `codee::traits::Decoder<T>`:
<codee::binary::from_to_bytes::FromToBytesCodec as codee::traits::Decoder<bool>>
<codee::binary::from_to_bytes::FromToBytesCodec as codee::traits::Decoder<f32>>
<codee::binary::from_to_bytes::FromToBytesCodec as codee::traits::Decoder<f64>>
<codee::binary::from_to_bytes::FromToBytesCodec as codee::traits::Decoder<i128>>
<codee::binary::from_to_bytes::FromToBytesCodec as codee::traits::Decoder<i16>>
<codee::binary::from_to_bytes::FromToBytesCodec as codee::traits::Decoder<i32>>
<codee::binary::from_to_bytes::FromToBytesCodec as codee::traits::Decoder<i64>>
<codee::binary::from_to_bytes::FromToBytesCodec as codee::traits::Decoder<i8>>
and 10 others
note: required by a bound in use_websocket
--> /space/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/leptos-use-0.12.0/src/use_websocket.rs:242:21
|
232 | pub fn use_websocket<T, C>(
| ------------- required by a bound in this function
...
242 | C: Encoderuse_websocket
error[E0277]: the trait bound BincodeSerdeCodec: codee::hybrid::IsBinary<TestCommunication, _> is not satisfied
--> ui_leptos/src/main.rs:54:9 |
54 | close(); | ^^^^^^^ the trait codee::hybrid::IsBinary<TestCommunication, _> is not implemented for BincodeSerdeCodec |
---|
note: required by a bound in use_websocket
--> /space/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/leptos-use-0.12.0/src/use_websocket.rs:243:8
|
232 | pub fn use_websocket<T, C>(
| ------------- required by a bound in this function
...
243 | C: IsBinary<T, <C as Decoderuse_websocket
error[E0277]: the trait bound BincodeSerdeCodec: codee::hybrid::HybridDecoder<TestCommunication, _> is not satisfied
--> ui_leptos/src/main.rs:54:9 |
54 | close(); | ^^^^^^^ the trait codee::hybrid::HybridDecoder<TestCommunication, _> is not implemented for BincodeSerdeCodec |
---|
note: required by a bound in use_websocket
--> /space/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/leptos-use-0.12.0/src/use_websocket.rs:244:8
|
232 | pub fn use_websocket<T, C>(
| ------------- required by a bound in this function
...
244 | C: HybridDecoder<T, <C as Decoderuse_websocket
error[E0277]: the trait bound BincodeSerdeCodec: codee::hybrid::HybridEncoder<TestCommunication, _> is not satisfied
--> ui_leptos/src/main.rs:54:9 |
54 | close(); | ^^^^^^^ the trait codee::hybrid::HybridEncoder<TestCommunication, _> is not implemented for BincodeSerdeCodec |
---|
note: required by a bound in use_websocket
--> /space/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/leptos-use-0.12.0/src/use_websocket.rs:245:8
|
232 | pub fn use_websocket<T, C>(
| ------------- required by a bound in this function
...
245 | C: HybridEncoder<T, <C as Encoderuse_websocket
error[E0277]: the trait bound BincodeSerdeCodec: codee::traits::Encoder<TestCommunication> is not satisfied
--> ui_leptos/src/main.rs:91:9 |
91 | send(&m); | ^^^^^^^^ the trait codee::traits::Encoder<TestCommunication> is not implemented for BincodeSerdeCodec |
---|
= help: the following other types implement trait `codee::traits::Encoder<T>`:
<codee::binary::from_to_bytes::FromToBytesCodec as codee::traits::Encoder<bool>>
<codee::binary::from_to_bytes::FromToBytesCodec as codee::traits::Encoder<f32>>
<codee::binary::from_to_bytes::FromToBytesCodec as codee::traits::Encoder<f64>>
<codee::binary::from_to_bytes::FromToBytesCodec as codee::traits::Encoder<i128>>
<codee::binary::from_to_bytes::FromToBytesCodec as codee::traits::Encoder<i16>>
<codee::binary::from_to_bytes::FromToBytesCodec as codee::traits::Encoder<i32>>
<codee::binary::from_to_bytes::FromToBytesCodec as codee::traits::Encoder<i64>>
<codee::binary::from_to_bytes::FromToBytesCodec as codee::traits::Encoder<i8>>
and 10 others
note: required by a bound in use_websocket
--> /space/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/leptos-use-0.12.0/src/use_websocket.rs:242:8
|
232 | pub fn use_websocket<T, C>(
| ------------- required by a bound in this function
...
242 | C: Encoderuse_websocket
error[E0277]: the trait bound BincodeSerdeCodec: codee::traits::Decoder<TestCommunication> is not satisfied
--> ui_leptos/src/main.rs:91:9 |
91 | send(&m); | ^^^^^^^^ the trait codee::traits::Decoder<TestCommunication> is not implemented for BincodeSerdeCodec |
---|
= help: the following other types implement trait `codee::traits::Decoder<T>`:
<codee::binary::from_to_bytes::FromToBytesCodec as codee::traits::Decoder<bool>>
<codee::binary::from_to_bytes::FromToBytesCodec as codee::traits::Decoder<f32>>
<codee::binary::from_to_bytes::FromToBytesCodec as codee::traits::Decoder<f64>>
<codee::binary::from_to_bytes::FromToBytesCodec as codee::traits::Decoder<i128>>
<codee::binary::from_to_bytes::FromToBytesCodec as codee::traits::Decoder<i16>>
<codee::binary::from_to_bytes::FromToBytesCodec as codee::traits::Decoder<i32>>
<codee::binary::from_to_bytes::FromToBytesCodec as codee::traits::Decoder<i64>>
<codee::binary::from_to_bytes::FromToBytesCodec as codee::traits::Decoder<i8>>
and 10 others
note: required by a bound in use_websocket
--> /space/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/leptos-use-0.12.0/src/use_websocket.rs:242:21
|
232 | pub fn use_websocket<T, C>(
| ------------- required by a bound in this function
...
242 | C: Encoderuse_websocket
error[E0277]: the trait bound BincodeSerdeCodec: codee::hybrid::IsBinary<TestCommunication, _> is not satisfied
--> ui_leptos/src/main.rs:91:9 |
91 | send(&m); | ^^^^^^^^ the trait codee::hybrid::IsBinary<TestCommunication, _> is not implemented for BincodeSerdeCodec |
---|
note: required by a bound in use_websocket
--> /space/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/leptos-use-0.12.0/src/use_websocket.rs:243:8
|
232 | pub fn use_websocket<T, C>(
| ------------- required by a bound in this function
...
243 | C: IsBinary<T, <C as Decoderuse_websocket
error[E0277]: the trait bound BincodeSerdeCodec: codee::hybrid::HybridDecoder<TestCommunication, _> is not satisfied
--> ui_leptos/src/main.rs:91:9 |
91 | send(&m); | ^^^^^^^^ the trait codee::hybrid::HybridDecoder<TestCommunication, _> is not implemented for BincodeSerdeCodec |
---|
note: required by a bound in use_websocket
--> /space/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/leptos-use-0.12.0/src/use_websocket.rs:244:8
|
232 | pub fn use_websocket<T, C>(
| ------------- required by a bound in this function
...
244 | C: HybridDecoder<T, <C as Decoderuse_websocket
error[E0277]: the trait bound BincodeSerdeCodec: codee::hybrid::HybridEncoder<TestCommunication, _> is not satisfied
--> ui_leptos/src/main.rs:91:9 |
91 | send(&m); | ^^^^^^^^ the trait codee::hybrid::HybridEncoder<TestCommunication, _> is not implemented for BincodeSerdeCodec |
---|
note: required by a bound in use_websocket
--> /space/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/leptos-use-0.12.0/src/use_websocket.rs:245:8
If you want to use codee 0.2 you have to use leptos-use from the latest main
branch in git. If you use 0.12 you have to use codee 0.1
rait
Encoder<TestCommunication>
is not implemented forBincodeSerdeCodec
[E0277] TraitDecoder<TestCommunication>
is not implemented forBincodeSerdeCodec
[E0277]