scuffle_rtmp/command_messages/
error.rs

1//! Command error type.
2
3/// Errors that can occur when processing command messages.
4#[derive(Debug, thiserror::Error)]
5pub enum CommandError {
6    /// Amf0 error.
7    #[error("amf0: {0}")]
8    Amf0(#[from] scuffle_amf0::Amf0Error),
9    /// Received an invalid onStatus info object.
10    #[error("invalid onStatus info object")]
11    InvalidOnStatusInfoObject,
12    /// The RTMP client is not implemented yet.
13    #[error("the rtmp client is not implemented yet")]
14    NoClientImplementation,
15}