Synphonyte / leptos-use

Collection of essential Leptos utilities inspired by React-Use / VueUse
https://leptos-use.rs/
Apache License 2.0
328 stars 72 forks source link

update codee 0.2.0 from 0.1.2 #162

Closed prehonor closed 2 months ago

prehonor commented 2 months ago

rait Encoder<TestCommunication> is not implemented for BincodeSerdeCodec [E0277] Trait Decoder<TestCommunication> is not implemented for BincodeSerdeCodec [E0277]

maccesch commented 2 months ago

I'm afraid I'm going to need more details

prehonor commented 2 months ago

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> <codee::binary::from_to_bytes::FromToBytesCodec as codee::traits::Decoder> <codee::binary::from_to_bytes::FromToBytesCodec as codee::traits::Decoder> <codee::binary::from_to_bytes::FromToBytesCodec as codee::traits::Decoder> <codee::binary::from_to_bytes::FromToBytesCodec as codee::traits::Decoder> <codee::binary::from_to_bytes::FromToBytesCodec as codee::traits::Decoder> <codee::binary::from_to_bytes::FromToBytesCodec as codee::traits::Decoder> <codee::binary::from_to_bytes::FromToBytesCodec as codee::traits::Decoder> and 10 others

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> <codee::binary::from_to_bytes::FromToBytesCodec as codee::traits::Encoder> <codee::binary::from_to_bytes::FromToBytesCodec as codee::traits::Encoder> <codee::binary::from_to_bytes::FromToBytesCodec as codee::traits::Encoder> <codee::binary::from_to_bytes::FromToBytesCodec as codee::traits::Encoder> <codee::binary::from_to_bytes::FromToBytesCodec as codee::traits::Encoder> <codee::binary::from_to_bytes::FromToBytesCodec as codee::traits::Encoder> <codee::binary::from_to_bytes::FromToBytesCodec as codee::traits::Encoder> and 10 others

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 Decoder>::Encoded>, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in use_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 Decoder>::Encoded, Error = <C as Decoder>::Error>, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in use_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 Encoder>::Encoded, Error = <C as Encoder>::Error>, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in use_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 Decoder>::Encoded>, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in use_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 Decoder>::Encoded, Error = <C as Decoder>::Error>, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in use_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 Encoder>::Encoded, Error = <C as Encoder>::Error>, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in use_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: Encoder + Decoder, | ^^^^^^^^^^ required by this bound in use_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: Encoder + Decoder, | ^^^^^^^^^^ required by this bound in use_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 Decoder>::Encoded>, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in use_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 Decoder>::Encoded, Error = <C as Decoder>::Error>, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in use_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 Encoder>::Encoded, Error = <C as Encoder>::Error>, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in use_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: Encoder + Decoder, | ^^^^^^^^^^ required by this bound in use_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: Encoder + Decoder, | ^^^^^^^^^^ required by this bound in use_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 Decoder>::Encoded>, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in use_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 Decoder>::Encoded, Error = <C as Decoder>::Error>, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in use_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 Encoder>::Encoded, Error = <C as Encoder>::Error>, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in use_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: Encoder + Decoder, | ^^^^^^^^^^ required by this bound in use_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: Encoder + Decoder, | ^^^^^^^^^^ required by this bound in use_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 Decoder>::Encoded>, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in use_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 Decoder>::Encoded, Error = <C as Decoder>::Error>, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in use_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

maccesch commented 2 months ago

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