Struct sota::rvi::transfers::Transfers [] [src]

pub struct Transfers {
    // some fields omitted
}

Holds all currently active transfers where each is referenced by UpdateRequestId.

Methods

impl Transfers
[src]

fn new(storage_dir: String) -> Transfers

fn get(&self, update_id: UpdateRequestId) -> Option<&Transfer>

fn get_mut(&mut self, update_id: UpdateRequestId) -> Option<&mut Transfer>

fn push(&mut self, update_id: UpdateRequestId, checksum: String)

fn remove(&mut self, update_id: UpdateRequestId)

fn clear(&mut self)

fn prune(&mut self, now: i64, timeout: i64)