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