Trait crossterm::SynchronizedUpdate

source ·
pub trait SynchronizedUpdate {
    // Required method
    fn sync_update<T>(
        &mut self,
        operations: impl FnOnce(&mut Self) -> T
    ) -> Result<T>;
}
Expand description

An interface for types that support synchronized updates.

Required Methods§

source

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

Performs a set of actions against the given type.

Object Safety§

This trait is not object safe.

Implementors§