pub enum Event<'a> {
RDB(Object<'a>),
AOF(Command<'a>),
}
Expand description
Redis事件
Variants§
RDB(Object<'a>)
RDB事件
当开启RedisListener
之后,Redis会将此刻内存中的数据dump出来(以rdb的格式进行dump),
dump完毕之后的rdb数据便会发送给RedisListener
,此rdb中的数据即对应此事件
AOF(Command<'a>)
AOF事件
在上面rdb数据处理完毕之后,客户端对Redis的数据写入操作将会发送给RedisListener
,
此写入操作即对应此事件
Auto Trait Implementations§
impl<'a> Freeze for Event<'a>
impl<'a> !RefUnwindSafe for Event<'a>
impl<'a> !Send for Event<'a>
impl<'a> !Sync for Event<'a>
impl<'a> Unpin for Event<'a>
impl<'a> !UnwindSafe for Event<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more