pub struct RecvTransaction<T: FileStore> {
pub header: Option<PDUHeader>,
/* private fields */
}Fields§
§header: Option<PDUHeader>a cache of the header used for interactions in this transmission
Implementations§
Source§impl<T: FileStore> RecvTransaction<T>
impl<T: FileStore> RecvTransaction<T>
Sourcepub fn new(
config: TransactionConfig,
nak_procedure: NakProcedure,
filestore: Arc<T>,
indication_tx: Sender<Indication>,
) -> Self
pub fn new( config: TransactionConfig, nak_procedure: NakProcedure, filestore: Arc<T>, indication_tx: Sender<Indication>, ) -> Self
Start a new SendTransaction with the given configuration and Filestore Implementation.
The NakProcedure is most likely passed from EntityConfig
pub fn handle_timeout(&mut self) -> TransactionResult<()>
pub fn get_status(&self) -> TransactionStatus
pub fn send_report( &self, sender: Option<Sender<Report>>, ) -> TransactionResult<()>
pub fn id(&self) -> TransactionID
pub fn shutdown(&mut self)
pub fn process_pdu(&mut self, pdu: PDU) -> TransactionResult<()>
Auto Trait Implementations§
impl<T> Freeze for RecvTransaction<T>
impl<T> RefUnwindSafe for RecvTransaction<T>where
T: RefUnwindSafe,
impl<T> Send for RecvTransaction<T>
impl<T> Sync for RecvTransaction<T>
impl<T> Unpin for RecvTransaction<T>
impl<T> UnsafeUnpin for RecvTransaction<T>
impl<T> UnwindSafe for RecvTransaction<T>where
T: RefUnwindSafe,
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