//! The configuration module represents the various options that an NSQ consumer
//! can contain.
/// NsqConfig contains values supported by `nsqd` for consumers.
// TODO: Do we want the Builder derive?
#[derive(Builder, Debug)]pubstructNsqConfig{max_in_flight:usize,
}implDefault forNsqConfig{fndefault()-> NsqConfig{
NsqConfig { max_in_flight:1}}}// Get style functions.
implNsqConfig{/// Return the current max in flight value.
pubfnmax_in_flight(&self)->usize{self.max_in_flight
}}