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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
//! Core types and functionality for the Deezer Connect protocol.
//!
//! This module provides a Rust implementation of Deezer's Connect protocol,
//! which enables remote control and synchronization between Deezer-enabled devices.
//!
//! # Protocol Structure
//!
//! The protocol is built around several key concepts:
//!
//! * **Channels** ([`channel`]): Define message routing and types
//! - User-to-user communication paths
//! - Message type identification
//! - Subscription management
//!
//! * **Messages** ([`messages`], [`contents`]): Handle various operations
//! - Playback control and status
//! - Device discovery and connection
//! - Queue management
//! - Stream reporting
//!
//! * **Streaming** ([`stream`]): Report playback activity
//! - Track playback monitoring
//! - User activity tracking
//!
//! * **Queue Management** ([`protos`]): Handle playback queues
//! - Queue content updates
//! - Protocol buffer serialization
//!
//! # Example
//!
//! ```rust
//! use deezer::{Channel, Contents, DeviceId, Headers, Ident, Message};
//!
//! // Create a playback control message
//! let msg = Message::Send {
//! channel: Channel::new(Ident::RemoteCommand),
//! contents: Contents {
//! ident: Ident::RemoteCommand,
//! headers: Headers {
//! from: DeviceId::default(),
//! destination: None,
//! },
//! body: /* message-specific content */,
//! },
//! };
//! ```
//!
//! # Architecture
//!
//! The implementation is layered:
//! * High-level message types ([`Message`], [`Contents`]) for application use
//! * Channel-based routing and subscriptions ([`Channel`], [`Ident`])
//! * Wire format serialization for protocol compatibility
//! * Protocol buffer handling for complex data structures
pub use ;
pub use ;
pub use Message;
pub use queue;