pub struct Options {
pub kermit: Config,
pub drain: Duration,
pub turnaround: Duration,
}Expand description
Tunables for a Session.
Fields§
§kermit: ConfigKermit client configuration. The default lingers after a receive
(Config::linger) as long as the turnaround, which the linger
counts toward: no extra delay between transactions.
drain: DurationHow long to discard input after opening (stale NAKs).
turnaround: DurationPause between the end of one transaction and the start of the next.
The HP drops a command packet that arrives right after the final ACK
of the previous transaction, and only answers after its own timeout
(about 6 s) NAKs it; 100 ms was enough on the emulator. Counted
from the Done or Error, so the client’s linger runs inside it.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Options
impl Freeze for Options
impl Move for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnsafeUnpin for Options
impl UnwindSafe for Options
Blanket Implementations§
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