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§
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>
Object Safety§
This trait is not object safe.