Struct carrier_pigeon::TcpHeader
source · [−]Expand description
A header to be sent before the payload on TCP.
len
and mid
are sent as big endian u16s.
This means they have a max value of 65535
.
This shouldn’t pose any real issues.
Fields
mid: MId
The message id.
len: usize
Then length of the payload without the header.
Implementations
Trait Implementations
impl Copy for TcpHeader
impl Eq for TcpHeader
impl StructuralEq for TcpHeader
impl StructuralPartialEq for TcpHeader
Auto Trait Implementations
impl RefUnwindSafe for TcpHeader
impl Send for TcpHeader
impl Sync for TcpHeader
impl Unpin for TcpHeader
impl UnwindSafe for TcpHeader
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more