[−][src]Struct redis_event::listener::Builder
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,