pub struct Transaction {
pub config: TransactionConfig,
pub progress: u64,
pub last_receiver_progress: u64,
pub keep_alive_limit: u64,
pub file_checksum: Option<u32>,
pub ack_limit: u8,
pub state: TransactionState,
pub suspended: bool,
pub ack_retries: u8,
}Expand description
Holds all the dynamic and static state for a single, ongoing sending transaction.
Fields§
§config: TransactionConfigThe shared, static configuration for this transaction.
progress: u64The number of bytes of the file that have been successfully sent.
last_receiver_progress: u64The last known progress of the receiver, as reported by KeepAlive PDUs.
keep_alive_limit: u64The byte discrepancy limit for Keep Alive checks.
file_checksum: Option<u32>The calculated checksum of the source file. Some once calculated.
ack_limit: u8The number of times to retry sending an EOF before faulting.
state: TransactionStateThe current position in the sender’s lifecycle.
suspended: boolWhether the transaction is currently suspended.
ack_retries: u8A counter for the number of times an EOF PDU has been retransmitted.
Trait Implementations§
Source§impl Debug for Transaction
impl Debug for Transaction
Source§impl Deref for Transaction
impl Deref for Transaction
Auto Trait Implementations§
impl Freeze for Transaction
impl RefUnwindSafe for Transaction
impl Send for Transaction
impl Sync for Transaction
impl Unpin for Transaction
impl UnsafeUnpin for Transaction
impl UnwindSafe for Transaction
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