Struct timely::communication::networking::MessageHeader[][src]

pub struct MessageHeader {
    pub channel: usize,
    pub source: usize,
    pub target: usize,
    pub length: usize,
    pub seqno: usize,
}

Framing data for each Vec<u8> transmission, indicating a typed channel, the source and destination workers, and the length in bytes.

Fields

channel: usize

index of channel.

source: usize

index of worker sending message.

target: usize

index of worker receiving message.

length: usize

number of bytes in message.

seqno: usize

sequence number.

Implementations

impl MessageHeader[src]

pub fn try_read(bytes: &mut [u8]) -> Option<MessageHeader>[src]

Returns a header when there is enough supporting data

pub fn write_to<W>(&self, writer: &mut W) -> Result<(), Error> where
    W: Write
[src]

Writes the header as binary data.

pub fn required_bytes(&self) -> usize[src]

The number of bytes required for the header and data.

Trait Implementations

impl Abomonation for MessageHeader[src]

impl Clone for MessageHeader[src]

impl Copy for MessageHeader[src]

impl Debug for MessageHeader[src]

impl Eq for MessageHeader[src]

impl Hash for MessageHeader[src]

impl PartialEq<MessageHeader> for MessageHeader[src]

impl StructuralEq for MessageHeader[src]

impl StructuralPartialEq for MessageHeader[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Data for T where
    T: 'static + Clone
[src]

impl<T> Data for T where
    T: 'static + Send + Sync + Any + Abomonation
[src]

impl<T> ExchangeData for T where
    T: Data + Data
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ProgressEventTimestamp for T where
    T: Data + Any + Debug
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.