send_file

Function send_file 

Source
pub async fn send_file<S, R>(
    send: &mut S,
    file: &mut R,
    skip: u64,
    size: u64,
    write_callback: &mut impl FnMut(u64),
    should_continue: &mut impl FnMut() -> bool,
) -> Result<bool>
Expand description

Generic send function

ยงReturns

  • Ok(true) if the transfer should continue
  • Ok(false) if the transfer should stop