pub struct RelayMessage {
pub cmd: u8,
pub stream_id: u16,
pub data: Bytes,
}Fields§
§cmd: u8§stream_id: u16§data: BytesTrait Implementations§
Source§impl Clone for RelayMessage
impl Clone for RelayMessage
Source§fn clone(&self) -> RelayMessage
fn clone(&self) -> RelayMessage
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 RelayMessage
impl Debug for RelayMessage
Source§impl Default for RelayMessage
impl Default for RelayMessage
Source§fn default() -> RelayMessage
fn default() -> RelayMessage
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RelayMessage
impl RefUnwindSafe for RelayMessage
impl Send for RelayMessage
impl Sync for RelayMessage
impl Unpin for RelayMessage
impl UnsafeUnpin for RelayMessage
impl UnwindSafe for RelayMessage
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