pub struct RiftFrameHeader {
pub version: ProtocolVersion,
pub stream: StreamKind,
pub flags: u16,
pub seq: u32,
pub timestamp: u64,
pub source: PeerId,
pub session: SessionId,
}Expand description
Header for every framed message.
Fields§
§version: ProtocolVersionNegotiated protocol version for this session.
stream: StreamKindStream classification (text, voice, control, etc).
flags: u16Custom flags for future expansions.
seq: u32Monotonic sequence number for the sender.
timestamp: u64Sender timestamp in milliseconds.
source: PeerIdSender peer id.
session: SessionIdSession id the frame belongs to.
Trait Implementations§
Source§impl Clone for RiftFrameHeader
impl Clone for RiftFrameHeader
Source§fn clone(&self) -> RiftFrameHeader
fn clone(&self) -> RiftFrameHeader
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RiftFrameHeader
impl Debug for RiftFrameHeader
Source§impl<'de> Deserialize<'de> for RiftFrameHeader
impl<'de> Deserialize<'de> for RiftFrameHeader
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RiftFrameHeader
impl RefUnwindSafe for RiftFrameHeader
impl Send for RiftFrameHeader
impl Sync for RiftFrameHeader
impl Unpin for RiftFrameHeader
impl UnwindSafe for RiftFrameHeader
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