pub struct OutLogicFront { /* private fields */ }
Implementations§
Source§impl OutLogicFront
impl OutLogicFront
pub fn new( transfer_id: TransferId, fixed_chunk_size: usize, resend_duration: Duration, blob: &[u8], ) -> Self
pub fn receive( &mut self, command: &ReceiverToSenderFrontCommands, ) -> Result<(), OutStreamError>
pub fn send( &mut self, now: Instant, ) -> Result<Vec<SenderToReceiverFrontCommands>, OutStreamError>
pub fn is_received_by_remote(&self) -> bool
pub fn transfer_id(&self) -> TransferId
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OutLogicFront
impl RefUnwindSafe for OutLogicFront
impl Send for OutLogicFront
impl Sync for OutLogicFront
impl Unpin for OutLogicFront
impl UnwindSafe for OutLogicFront
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