#[non_exhaustive]pub enum TftpOpcode {
ReadRequest,
WriteRequest,
Data,
Ack,
Error,
Other(u16),
}Available on crate feature
tftp only.Expand description
TFTP opcode (RFC 1350 §5).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ReadRequest
1 — Read Request.
WriteRequest
2 — Write Request.
Data
3 — DATA block.
Ack
4 — DATA acknowledgement.
Error
5 — Error.
Other(u16)
Any other opcode value.
Implementations§
Trait Implementations§
Source§impl Clone for TftpOpcode
impl Clone for TftpOpcode
impl Copy for TftpOpcode
Source§impl Debug for TftpOpcode
impl Debug for TftpOpcode
Source§impl<'de> Deserialize<'de> for TftpOpcode
Available on crate feature serde only.
impl<'de> Deserialize<'de> for TftpOpcode
Available on crate feature
serde only.Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TftpOpcode
Source§impl Hash for TftpOpcode
impl Hash for TftpOpcode
Source§impl PartialEq for TftpOpcode
impl PartialEq for TftpOpcode
Source§impl Serialize for TftpOpcode
Available on crate feature serde only.
impl Serialize for TftpOpcode
Available on crate feature
serde only.impl StructuralPartialEq for TftpOpcode
Auto Trait Implementations§
impl Freeze for TftpOpcode
impl RefUnwindSafe for TftpOpcode
impl Send for TftpOpcode
impl Sync for TftpOpcode
impl Unpin for TftpOpcode
impl UnsafeUnpin for TftpOpcode
impl UnwindSafe for TftpOpcode
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more