sheave_core/messages/amf.rs
1//! # The Action Message Formats
2//!
3//! These are data types which are defined as the Action Message Format.
4//! There are two formats which are version 0 and version 3 in AMF.
5//! Currently the RTMP uses only AMF version 0.
6
7pub mod v0;
8mod inconsistent_marker;
9mod invalid_string;
10
11use std::io::Result as IOResult;
12pub use self::{
13 inconsistent_marker::*,
14 invalid_string::*
15};
16
17#[doc(hidden)]
18pub(self) fn ensure_marker(expected: u8, actual: u8) -> IOResult<()> {
19 (expected == actual).then_some(()).ok_or(inconsistent_marker(expected, actual))
20}