pub struct TransactionConfig {
pub transaction_id: TransactionId,
pub destination_id: EntityId,
pub file_size: u64,
pub fault_handlers: FaultHandlerSet,
pub inactivity_timeout_secs: u16,
pub checksum_type: ChecksumType,
pub source_file_id: FileId,
pub destination_file_id: FileId,
}Expand description
The static configuration for a single transaction that is shared between both sender and receiver.
This information is typically derived from the initial PutRequest (for the sender)
or the received Metadata PDU (for the receiver).
Fields§
§transaction_id: TransactionIdThe unique identifier for this transaction.
destination_id: EntityIdThe EntityId of the destination for this transaction.
file_size: u64The total size of the file in bytes.
fault_handlers: FaultHandlerSetOptional fault handler overrides, one for each possible Condition Code.
If an entry is None, the default MIB handler is used.
inactivity_timeout_secs: u16Timeout in seconds to wait for any PDU before declaring the transaction inactive.
checksum_type: ChecksumTypeThe type of checksum to use for data integrity verification.
source_file_id: FileIdThe name of the file at the source entity.
destination_file_id: FileIdThe name the file should have at the destination entity.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TransactionConfig
impl RefUnwindSafe for TransactionConfig
impl Send for TransactionConfig
impl Sync for TransactionConfig
impl Unpin for TransactionConfig
impl UnsafeUnpin for TransactionConfig
impl UnwindSafe for TransactionConfig
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