pub struct Options {
    pub blksize: Option<u16>,
    pub timeout: Option<u8>,
    pub tsize: Option<u64>,
    pub windowsize: Option<u16>,
}
Expand description

TFTP transfer options. Defined in RFC-2347.

Fields

blksize: Option<u16>

Block size; 8-65464 inclusive. Defined in RFC-2348.

timeout: Option<u8>

Time-out; 1-255 seconds, inclusive. Defined in RFC-2349.

tsize: Option<u64>

Transfer size; 0 for query. Defined in RFC-2349.

windowsize: Option<u16>

Window size; 1-65535. Defined in RFC-7440.

Implementations

Is one or more of the options set?

Read options from the given reader.

Write options to the given writer.

Parse options from the given buffer.

Note that errors arising from this method are strings.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.