Enum indicatif::DrawTarget
[−]
[src]
pub enum DrawTarget { Term(Term, Option<DrawState>, Option<Duration>), Remote(usize, Sender<(usize, DrawState)>), Hidden, }
Target for draw operations
Variants
Term(Term, Option<DrawState>, Option<Duration>)
Draws into a terminal
Remote(usize, Sender<(usize, DrawState)>)
Draws to a remote receiver
Hidden
Do not draw at all
Methods
impl DrawTarget
[src]
fn to_term(term: Term, refresh_rate: Option<u64>) -> DrawTarget
Draw to a terminal, optionally with a refresh rate.
fn stdout() -> DrawTarget
Draw to a buffered stdout terminal at a max of 15 times a second.
fn stderr() -> DrawTarget
Draw to a buffered stderr terminal at a max of 15 times a second.
fn apply_draw_state(&mut self, draw_state: DrawState) -> Result<()>
Apply the given draw state (draws it).