#[repr(u16)]
pub enum OpCode {
ReadRequest,
WriteRequest,
Data,
Acknowledgement,
Error,
OptionAcknowledgement,
}
Expand description
The TFTP header of a packet contains the opcode associated with that packet. TFTP supports five types of packets
Variants§
Trait Implementations§
source§impl PartialEq<OpCode> for OpCode
impl PartialEq<OpCode> for OpCode
source§impl TryFrom<u16> for OpCode
impl TryFrom<u16> for OpCode
§type Error = TryFromPrimitiveError<OpCode>
type Error = TryFromPrimitiveError<OpCode>
The type returned in the event of a conversion error.