leptos-use 0.20.0

Collection of essential Leptos utilities inspired by React-Use / VueUse
Documentation
//! Generated by the micro crate split: deprecated forwarding wrappers.

pub mod use_websocket {
    use ::leptos_use_websocket::*;

    use codee::{Decoder, Encoder, HybridCoderError, HybridDecoder, HybridEncoder};

    use leptos::prelude::*;

    #[doc = " Deprecated forwarding wrapper of [`leptos_use_websocket::use_websocket`](https://docs.rs/leptos-use-websocket/latest/leptos_use_websocket/fn.use_websocket.html).\n\n Add the `leptos-use-websocket` crate to your dependencies and use `leptos_use_websocket::use_websocket` instead."]
    #[deprecated(
        since = "0.20.0",
        note = "leptos-use has been split into micro crates. Add `leptos-use-websocket` to your dependencies and use `leptos_use_websocket::use_websocket` instead."
    )]
    #[inline(always)]
    pub fn use_websocket<Tx, Rx, C>(
        url: &str,
    ) -> UseWebSocketReturn<
        Tx,
        Rx,
        impl Fn() + Clone + Send + Sync + 'static,
        impl Fn() + Clone + Send + Sync + 'static,
        impl Fn(&Tx) + Clone + Send + Sync + 'static,
    >
    where
        Tx: Send + Sync + 'static,
        Rx: Send + Sync + 'static,
        C: Encoder<Tx> + Decoder<Rx>,
        C: HybridEncoder<Tx, <C as Encoder<Tx>>::Encoded, Error = <C as Encoder<Tx>>::Error>,
        C: HybridDecoder<Rx, <C as Decoder<Rx>>::Encoded, Error = <C as Decoder<Rx>>::Error>,
    {
        ::leptos_use_websocket::use_websocket::<Tx, Rx, C>(url)
    }
    #[doc = " Deprecated forwarding wrapper of [`leptos_use_websocket::use_websocket_with_options`](https://docs.rs/leptos-use-websocket/latest/leptos_use_websocket/fn.use_websocket_with_options.html).\n\n Add the `leptos-use-websocket` crate to your dependencies and use `leptos_use_websocket::use_websocket_with_options` instead."]
    #[deprecated(
        since = "0.20.0",
        note = "leptos-use has been split into micro crates. Add `leptos-use-websocket` to your dependencies and use `leptos_use_websocket::use_websocket_with_options` instead."
    )]
    #[allow(clippy::type_complexity)]
    #[inline(always)]
    pub fn use_websocket_with_options<Tx, Rx, C, Hb, HbCodec>(
        url: &str,
        options: UseWebSocketOptions<
            Rx,
            HybridCoderError<<C as Encoder<Tx>>::Error>,
            HybridCoderError<<C as Decoder<Rx>>::Error>,
            Hb,
            HbCodec,
        >,
    ) -> UseWebSocketReturn<
        Tx,
        Rx,
        impl Fn() + Clone + Send + Sync + 'static,
        impl Fn() + Clone + Send + Sync + 'static,
        impl Fn(&Tx) + Clone + Send + Sync + 'static,
    >
    where
        Tx: Send + Sync + 'static,
        Rx: Send + Sync + 'static,
        C: Encoder<Tx> + Decoder<Rx>,
        C: HybridEncoder<Tx, <C as Encoder<Tx>>::Encoded, Error = <C as Encoder<Tx>>::Error>,
        C: HybridDecoder<Rx, <C as Decoder<Rx>>::Encoded, Error = <C as Decoder<Rx>>::Error>,
        Hb: Default + Send + Sync + 'static,
        HbCodec: Encoder<Hb> + Send + Sync,
        HbCodec: HybridEncoder<
                Hb,
                <HbCodec as Encoder<Hb>>::Encoded,
                Error = <HbCodec as Encoder<Hb>>::Error,
            >,
        <HbCodec as Encoder<Hb>>::Error: std::fmt::Debug,
    {
        ::leptos_use_websocket::use_websocket_with_options::<Tx, Rx, C, Hb, HbCodec>(url, options)
    }
}