Trait git_nomad::renderer::Renderer

source ·
pub trait Renderer {
    // Required methods
    fn writer<T>(
        &mut self,
        func: impl FnOnce(&mut dyn Write) -> Result<T>,
    ) -> Result<T>;
    fn are_spinners_visible(&self) -> bool;
    fn spinner<T>(
        &mut self,
        description: impl Into<Cow<'static, str>>,
        func: impl FnOnce() -> Result<T>,
    ) -> Result<T>;
}

Required Methods§

source

fn writer<T>( &mut self, func: impl FnOnce(&mut dyn Write) -> Result<T>, ) -> Result<T>

source

fn are_spinners_visible(&self) -> bool

source

fn spinner<T>( &mut self, description: impl Into<Cow<'static, str>>, func: impl FnOnce() -> Result<T>, ) -> Result<T>

Object Safety§

This trait is not object safe.

Implementors§