[−][src]Struct pikmin::downloader::bf::BfDownloader
A pre-built downloader for bitFlyer.
Methods
impl BfDownloader
[src]
pub fn new(newer: u64, older: u64) -> Self
[src]
Creates a new downloader with a specific range. The input source is fixed.
Trait Implementations
impl Downloader for BfDownloader
[src]
type IDT = u64
A type of element which ID is made up of.
type ID = OrdID<Self::IDT>
A type of ID for specifying the downloading point in an API client.
type RAW = BfGetExecution
A type of downloaded trade data.
fn start_id(&self) -> Self::IDT
[src]
fn end_id(&self) -> Self::IDT
[src]
fn continue_condition(&self, current: &Self::IDT, end: &Self::IDT) -> bool
[src]
fn fetch(&self, c: &Self::IDT) -> Result<Vec<Self::RAW>>
[src]
fn convert(&self, v: &Self::RAW) -> Result<Trade>
[src]
fn output(
&self,
u: Vec<Trade>,
writer: &mut impl Writer
) -> Result<Self::IDT>
[src]
&self,
u: Vec<Trade>,
writer: &mut impl Writer
) -> Result<Self::IDT>
fn sleep_millis(&self) -> u64
[src]
fn init_id(
&self,
default: Self::IDT,
process_log_path: &Path
) -> Result<Self::IDT>
[src]
&self,
default: Self::IDT,
process_log_path: &Path
) -> Result<Self::IDT>
Returns initial ID from a progress file. If reading is failed, use a given default
value.
fn record_progress(&self, path: &Path, id: &str) -> Result<()>
[src]
Records progress on somewhere (typically a file).
fn run(
&self,
writer: &mut impl Writer,
process_log_path: &Path
) -> Result<()>
[src]
&self,
writer: &mut impl Writer,
process_log_path: &Path
) -> Result<()>
Executes downloading.
impl Debug for BfDownloader
[src]
Auto Trait Implementations
impl Send for BfDownloader
impl Sync for BfDownloader
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Erased for T
impl<T> Same for T
type Output = T
Should always be Self