pub struct Transaction {
pub tracker: SegmentTracker,
pub config: TransactionConfig,
pub filestore_requests: Vec<FilestoreRequest, 4, u8>,
pub progress: u64,
pub nak_timeout_secs: u16,
pub keep_alive_interval_secs: u16,
pub state: TransactionState,
pub nak_retries: u8,
pub nak_limit: u8,
pub suspended: bool,
}Expand description
Holds all the dynamic and static state for a single, ongoing receiving transaction.
Fields§
§tracker: SegmentTrackerThe data structure used to track missing file segments.
config: TransactionConfigThe shared, static configuration for this transaction.
filestore_requests: Vec<FilestoreRequest, 4, u8>Filestore requests to be processed by the Runner.
progress: u64The number of bytes of the file that have been successfully received and written.
nak_timeout_secs: u16Timeout in seconds to wait for missing data after sending a NAK.
keep_alive_interval_secs: u16The interval at which to send periodic KeepAlive PDUs.
state: TransactionStateThe current position in the receiver’s lifecycle.
nak_retries: u8A counter for the number of times a NAK sequence has been retransmitted.
nak_limit: u8The number of times to retry sending a NAK sequence before faulting.
suspended: boolWhether the transaction is currently suspended.
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