Trait StateReads

Source
pub trait StateReads: Send + Sync {
    type Error: Debug + Display + Send;
    type Pre: StateRead<Error = Self::Error>;
    type Post: StateRead<Error = Self::Error>;

    // Required methods
    fn pre(&self) -> &Self::Pre;
    fn post(&self) -> &Self::Post;
}
Expand description

Pre and post sync state reads.

Required Associated Types§

Source

type Error: Debug + Display + Send

Common error type

Source

type Pre: StateRead<Error = Self::Error>

Pre state read

Source

type Post: StateRead<Error = Self::Error>

Post state read

Required Methods§

Source

fn pre(&self) -> &Self::Pre

Get the pre state read

Source

fn post(&self) -> &Self::Post

Get the post state read

Implementations on Foreign Types§

Source§

impl<S, P> StateReads for (S, P)
where S: StateRead, P: StateRead<Error = S::Error>, S::Error: Send,

Source§

type Error = <S as StateRead>::Error

Source§

type Pre = S

Source§

type Post = P

Source§

fn pre(&self) -> &Self::Pre

Source§

fn post(&self) -> &Self::Post

Implementors§