Enum tftp::Message [−][src]
pub enum Message<'b> { File { operation: FileOperation, path: &'b AsciiStr, mode: Mode, }, Data(BlockId, BufAtMost512<'b>), Ack(BlockId), Error(BlockId, &'b AsciiStr), }
A single TFTP message.
Variants
File operation message.
By protocol definition, this is the first message of TFTP session.
Fields of File
operation: FileOperation
Exact file operation client requested.
path: &'b AsciiStr
A path of file server should work with (write to it or read it).
mode: Mode
Data sending mode that client requested
Data(BlockId, BufAtMost512<'b>)
A block of data (max 512 bytes in len).
Ack(BlockId)
Acknowledge of receiving a block of data.
Error happened during TFTP session.
Trait Implementations
Auto Trait Implementations
impl<'b> RefUnwindSafe for Message<'b>
impl<'b> Send for Message<'b>
impl<'b> Sync for Message<'b>
impl<'b> Unpin for Message<'b>
impl<'b> UnwindSafe for Message<'b>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,