pub struct StatefulProcessorBuilder<C: ServiceContext> { /* private fields */ }
Implementations§
Source§impl<C: ServiceContext> StatefulProcessorBuilder<C>
impl<C: ServiceContext> StatefulProcessorBuilder<C>
pub fn new(context: C) -> Self
pub fn handler<H>(self, handler: H) -> Selfwhere
H: StatefulHandler<C> + 'static,
pub fn registry(self, registry: StatefulMethodRegistry<C>) -> Self
pub fn build(self) -> Result<StatefulProcessor<C>, Box<dyn Error>>
Auto Trait Implementations§
impl<C> Freeze for StatefulProcessorBuilder<C>where
C: Freeze,
impl<C> !RefUnwindSafe for StatefulProcessorBuilder<C>
impl<C> Send for StatefulProcessorBuilder<C>
impl<C> Sync for StatefulProcessorBuilder<C>
impl<C> Unpin for StatefulProcessorBuilder<C>where
C: Unpin,
impl<C> !UnwindSafe for StatefulProcessorBuilder<C>
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