Enum file_protocol::Message[][src]

pub enum Message {
    Sync(u32String),
    Metadata(u32Stringu32),
    ReceiveChunk(u32Stringu32Vec<u8>),
    ACK(u32String),
    NAK(u32StringOption<Vec<(u32, u32)>>),
    ReqReceive(u32StringStringOption<u32>),
    ReqTransmit(u32String),
    SuccessReceive(u32),
    SuccessTransmit(u32Stringu32Option<u32>),
    Failure(u32String),
}

File protocol message types

Variants

TODO: Decide whether or not to keep this

Receiver should prepare a new temporary storage folder with the specified metadata

File data chunk message

Receiver has successfully gotten all data chunks of the requested file

Receiver is missing the specified file data chunks

(Client Only) Message requesting the recipient to receive the specified file

(Client Only) Message requesting the recipient to transmit the specified file

(Server Only) Recipient has successfully processed a request to receive a file

(Server Only) Recipient has successfully prepared to transmit a file

(Server Only) The transmit or receive request has failed to be completed

Trait Implementations

impl Debug for Message
[src]

Formats the value using the given formatter. Read more

impl Clone for Message
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for Message
[src]

impl PartialEq for Message
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl Send for Message

impl Sync for Message