[][src]Struct redis_event::listener::Builder

pub struct Builder {
    pub config: Option<Config>,
    pub rdb_parser: Option<Rc<RefCell<dyn RDBParser>>>,
    pub event_handler: Option<Rc<RefCell<dyn EventHandler>>>,
    pub module_parser: Option<Rc<RefCell<dyn ModuleParser>>>,
    pub control_flag: Option<Arc<AtomicBool>>,
}

Fields

config: Option<Config>rdb_parser: Option<Rc<RefCell<dyn RDBParser>>>event_handler: Option<Rc<RefCell<dyn EventHandler>>>module_parser: Option<Rc<RefCell<dyn ModuleParser>>>control_flag: Option<Arc<AtomicBool>>

Implementations

impl Builder[src]

pub fn new() -> Builder[src]

pub fn with_config(&mut self, config: Config)[src]

pub fn with_rdb_parser(&mut self, parser: Rc<RefCell<dyn RDBParser>>)[src]

pub fn with_event_handler(&mut self, handler: Rc<RefCell<dyn EventHandler>>)[src]

pub fn with_module_parser(&mut self, parser: Rc<RefCell<dyn ModuleParser>>)[src]

pub fn with_control_flag(&mut self, flag: Arc<AtomicBool>)[src]

pub fn build(&mut self) -> Listener[src]

Auto Trait Implementations

impl !RefUnwindSafe for Builder

impl !Send for Builder

impl !Sync for Builder

impl Unpin for Builder

impl !UnwindSafe for Builder

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.