devela::_dep::crossterm

Trait SynchronizedUpdate

pub trait SynchronizedUpdate {
    // Required method
    fn sync_update<T>(
        &mut self,
        operations: impl FnOnce(&mut Self) -> T,
    ) -> Result<T, Error> ;
}
Available on crate features dep_crossterm and std only.
Expand description

An interface for types that support synchronized updates.

Required Methods§

fn sync_update<T>( &mut self, operations: impl FnOnce(&mut Self) -> T, ) -> Result<T, Error>

Performs a set of actions against the given type.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

§

impl<W> SynchronizedUpdate for W
where W: Write + ?Sized,