[][src]Trait pikmin::downloader::id::DownloaderID

pub trait DownloaderID<T: Display> {
    fn current(&self) -> &T;
fn update(&mut self, c: T) -> Result<()>;
fn to_string(&self) -> String; }

An abstraction for IDs. This trait must be implemented if you want to create a downloader with a new ID management.

Required methods

fn current(&self) -> &T

Returns current ID.

fn update(&mut self, c: T) -> Result<()>

Updates current ID with a given ID.

fn to_string(&self) -> String

Converts current ID to a String value in order to record the progress.

Loading content...

Implementors

impl DownloaderID<DateTime<Utc>> for DateTimeID[src]

impl<T: Ord + Display> DownloaderID<T> for OrdID<T>[src]

Loading content...