1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//! Transport implementations for auth messages.
//!
//! This module provides transport layer implementations for sending
//! and receiving authentication messages.
//!
//! ## Available Transports
//!
//! - [`SimplifiedFetchTransport`] - HTTP-based transport (requires `http` feature)
//! - `WebSocketTransport` - WebSocket-based transport (requires `websocket` feature)
//! - [`MockTransport`] - Mock transport for testing
//!
//! ## Custom Transports
//!
//! Implement the [`Transport`] trait to create custom transports:
//!
//! ```rust,ignore
//! use bsv_rs::auth::transports::Transport;
//!
//! struct MyTransport;
//!
//! #[async_trait]
//! impl Transport for MyTransport {
//! async fn send(&self, message: &AuthMessage) -> Result<()> {
//! // Send the message
//! Ok(())
//! }
//!
//! fn set_callback(&self, callback: Box<TransportCallback>) {
//! // Store the callback
//! }
//!
//! fn clear_callback(&self) {
//! // Clear the callback
//! }
//! }
//! ```
pub use ;
pub use ;