Skip to main content

hyperlane_plugin_websocket/
lib.rs

1//! hyperlane-plugin-websocket
2//!
3//! A WebSocket plugin for the Hyperlane framework,
4//! providing robust WebSocket communication capabilities and integrating
5//! with hyperlane-broadcast for efficient message dissemination.
6
7mod r#const;
8mod r#enum;
9mod r#impl;
10mod r#static;
11mod r#struct;
12mod r#trait;
13
14#[cfg(test)]
15#[path = "../tests/mod.rs"]
16mod tests;
17
18pub use {r#enum::*, r#struct::*, r#trait::*};
19
20pub(crate) use {r#const::*, r#static::*};
21
22use std::{
23    convert::Infallible,
24    net::{IpAddr, Ipv4Addr, Ipv6Addr, SocketAddr},
25    num::{
26        NonZeroI8, NonZeroI16, NonZeroI32, NonZeroI64, NonZeroI128, NonZeroIsize, NonZeroU8,
27        NonZeroU16, NonZeroU32, NonZeroU64, NonZeroU128, NonZeroUsize,
28    },
29    sync::OnceLock,
30};
31
32use {
33    hyperlane::{
34        tokio::sync::broadcast::{
35            Receiver,
36            error::{RecvError, SendError},
37        },
38        *,
39    },
40    lombok_macros::*,
41    tokio_broadcast::*,
42};