Enum file_protocol::Message[][src]

pub enum Message {
    Sync(String),
    Metadata(Stringu32),
    ReceiveChunk(Stringu32Vec<u8>),
    ACK(String),
    NAK(StringOption<Vec<(u32, u32)>>),
    ReqReceive(u64StringStringOption<u32>),
    ReqTransmit(u64String),
    SuccessReceive(u64),
    SuccessTransmit(u64Stringu32Option<u32>),
    Failure(u64String),
}

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

Auto Trait Implementations

impl Send for Message

impl Sync for Message