pub struct EchoPacket {
pub time: u32,
pub time2: u32,
pub random_echo: [u8; 1528],
}Expand description
C2 (client→server) or S2 (server→client): the 1536-byte near-echo packet (§5.2.4).
Fields§
§time: u32time — MUST equal the peer’s S1 time (for C2) or C1 time (for
S2) (§5.2.4).
time2: u32time2 — MUST be the timestamp at which the peer’s previous packet
(S1 or C1) was read (§5.2.4).
random_echo: [u8; 1528]random echo — MUST equal the peer’s S1/C1 random bytes, verbatim
(§5.2.4).
Trait Implementations§
Source§impl Clone for EchoPacket
impl Clone for EchoPacket
Source§fn clone(&self) -> EchoPacket
fn clone(&self) -> EchoPacket
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EchoPacket
Source§impl Debug for EchoPacket
impl Debug for EchoPacket
impl Eq for EchoPacket
Source§impl<'a> Parse<'a> for EchoPacket
impl<'a> Parse<'a> for EchoPacket
Source§impl PartialEq for EchoPacket
impl PartialEq for EchoPacket
Source§impl Serialize for EchoPacket
impl Serialize for EchoPacket
Source§type Error = RtmpError
type Error = RtmpError
The error type this implementer returns (usually the same as the
corresponding
Parse impl, but need not be).Source§fn serialized_len(&self) -> usize
fn serialized_len(&self) -> usize
Number of bytes
serialize_into will write.impl StructuralPartialEq for EchoPacket
Auto Trait Implementations§
impl Freeze for EchoPacket
impl RefUnwindSafe for EchoPacket
impl Send for EchoPacket
impl Sync for EchoPacket
impl Unpin for EchoPacket
impl UnsafeUnpin for EchoPacket
impl UnwindSafe for EchoPacket
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