pub struct Command<'a> {
pub transaction_id: f64,
pub command_type: CommandType<'a>,
}
Expand description
Command message.
The client and the server exchange commands which are AMF encoded. The sender sends a command message that consists of command name, transaction ID, and command object that contains related parameters.
Defined by:
- Legacy RTMP spec, section 7.1.1
- Legacy RTMP spec, section 7.2
Fields§
§transaction_id: f64
Transaction ID.
The receiver processes the command and sends back the response with the same transaction ID.
command_type: CommandType<'a>
Command type.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> !Freeze for Command<'a>
impl<'a> RefUnwindSafe for Command<'a>
impl<'a> Send for Command<'a>
impl<'a> Sync for Command<'a>
impl<'a> Unpin for Command<'a>
impl<'a> UnwindSafe for Command<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more