[][src]Trait snowball::traits::query::QueryContext

pub trait QueryContext: Serialize + DeserializeOwned {
    type Key: Serialize + DeserializeOwned + Ord;
    type Value: Serialize + DeserializeOwned;
    fn get(&self, key: Self::Key) -> Option<&Self::Value>;
}

Context of the query, used to store additional data that recipient node can use to figure out query's response

Associated Types

Loading content...

Required methods

fn get(&self, key: Self::Key) -> Option<&Self::Value>

Get value for a key

Loading content...

Implementors

Loading content...