pub struct Disruptor<T> { /* private fields */ }Expand description
Disruptor Facade.
Implementations§
Source§impl<T: Send + Sync + 'static> Disruptor<T>
impl<T: Send + Sync + 'static> Disruptor<T>
Sourcepub fn builder<F>(factory: F) -> DisruptorBuilder<T, F>where
F: Fn() -> T,
pub fn builder<F>(factory: F) -> DisruptorBuilder<T, F>where
F: Fn() -> T,
Creates a new builder for the Disruptor.
Sourcepub fn handle_events_with<H: EventHandler<T> + 'static>(
&mut self,
handler: H,
) -> &mut Self
pub fn handle_events_with<H: EventHandler<T> + 'static>( &mut self, handler: H, ) -> &mut Self
Registers an event handler.
Auto Trait Implementations§
impl<T> Freeze for Disruptor<T>
impl<T> !RefUnwindSafe for Disruptor<T>
impl<T> Send for Disruptor<T>where
T: Send,
impl<T> Sync for Disruptor<T>where
T: Send,
impl<T> Unpin for Disruptor<T>
impl<T> !UnwindSafe for Disruptor<T>
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