pub struct HandshakePacket {
pub time: u32,
pub zero: u32,
pub random: [u8; 1528],
}Expand description
C1 (client→server) or S1 (server→client): the 1536-byte time/zero/random handshake packet (§5.2.3).
Fields§
§time: u32time — timestamp epoch for this endpoint’s future chunks. May be 0
or arbitrary (§5.2.3).
zero: u32zero — MUST be all zeros on the wire (§5.2.3).
random: [u8; 1528]random bytes — arbitrary data distinguishing this handshake from
the peer’s; no cryptographic randomness required (§5.2.3).
Trait Implementations§
Source§impl Clone for HandshakePacket
impl Clone for HandshakePacket
Source§fn clone(&self) -> HandshakePacket
fn clone(&self) -> HandshakePacket
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 HandshakePacket
Source§impl Debug for HandshakePacket
impl Debug for HandshakePacket
impl Eq for HandshakePacket
Source§impl<'a> Parse<'a> for HandshakePacket
impl<'a> Parse<'a> for HandshakePacket
Source§impl PartialEq for HandshakePacket
impl PartialEq for HandshakePacket
Source§impl Serialize for HandshakePacket
impl Serialize for HandshakePacket
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 HandshakePacket
Auto Trait Implementations§
impl Freeze for HandshakePacket
impl RefUnwindSafe for HandshakePacket
impl Send for HandshakePacket
impl Sync for HandshakePacket
impl Unpin for HandshakePacket
impl UnsafeUnpin for HandshakePacket
impl UnwindSafe for HandshakePacket
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