pub trait IsBarWrapper: Sealed {
    type Bar: IsBar;
    type Error: Debug;
    fn try_bar<'b>(
        &'b mut self
    ) -> Result<Box<dyn DerefMut<Target = Self::Bar> + 'b>, Self::Error>; fn bar<'b>(&'b mut self) -> Box<dyn DerefMut<Target = Self::Bar> + 'b> { ... } }
Expand description

General API for a bar wrappers used by ThreadedBarWrapper and BarWrapper

Associated Types

Required methods

Attempts to aqquire the contained bar

Errors

if there is some error aqquiring the bar

Provided methods

Gets a reference to the underlying bar for calling functions on it

Panics

if aqquiring the bar fails.

for a non-panicking version, see try_bar

Implementors