pub struct Logic { /* private fields */ }
Implementations§
Source§impl Logic
impl Logic
Sourcepub fn new(
transfer_id: TransferId,
fixed_chunk_size: u16,
resend_duration: Duration,
blob: &[u8],
) -> Result<Self, OutStreamError>
pub fn new( transfer_id: TransferId, fixed_chunk_size: u16, resend_duration: Duration, blob: &[u8], ) -> Result<Self, OutStreamError>
§Errors
OutStreamError
// TODO:
pub fn send(&mut self, now: Millis, max_count: usize) -> Vec<SetChunkFrontData>
Sourcepub fn set_waiting_for_chunk_index(
&mut self,
waiting_for_index: usize,
receive_mask: u64,
) -> Result<(), OutStreamError>
pub fn set_waiting_for_chunk_index( &mut self, waiting_for_index: usize, receive_mask: u64, ) -> Result<(), OutStreamError>
§Errors
OutStreamError
// TODO:
pub fn is_received_by_remote(&self) -> bool
pub fn octet_size(&self) -> u32
pub const fn chunk_size(&self) -> u16
pub const 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