pub enum Packet {
ReadWriteRequest {
filename: String,
mode: Mode,
},
Data {
block_number: u16,
data: Vec<u8>,
},
Ack(u16),
Error {
raw_code: u16,
code: ErrorCode,
message: String,
},
}
Represents the various types of TFTP Packets
Show fields
Fields of ReadWriteRequest
Show fields
Show fields
Formats the value using the given formatter. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
impl<T> Any for T where
T: 'static + ?Sized,
[src]
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.