struct GbtConfig {
block_payload_max: usize,
window: u8,
streaming: bool,
}Expand description
General block transfer configuration for a session (IEC 62056-5-3 §9.3):
requests/responses whose service qualifies (see gbt::applies_to_apdu)
and exceed block_payload_max are segmented into GBT blocks instead of
sent as a single frame.
Fields§
§block_payload_max: usizeMaximum payload octets per block (the overall block size minus the
GBT header, see gbt::HEADER_MAX).
window: u8Confirmed-mode window size (0 = unconfirmed: no ack is awaited between blocks).
streaming: boolWhether the streaming variant is used.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GbtConfig
impl RefUnwindSafe for GbtConfig
impl Send for GbtConfig
impl Sync for GbtConfig
impl Unpin for GbtConfig
impl UnsafeUnpin for GbtConfig
impl UnwindSafe for GbtConfig
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