pub struct SerialHandlerBuilder { /* private fields */ }Expand description
Builder for SerialHandler. Start with SerialHandler::builder.
Implementations§
Source§impl SerialHandlerBuilder
impl SerialHandlerBuilder
pub fn connections(self, connections: Arc<ConnectionManager>) -> Self
pub fn security(self, security: SecurityManager) -> Self
pub fn budget(self, budget: Arc<dyn BufferBudget>) -> Self
pub fn profile_store(self, profile_store: Arc<ProfileStore>) -> Self
pub fn capture_store(self, capture_store: Arc<CaptureStore>) -> Self
pub fn port_provider(self, port_provider: Arc<dyn PortProvider>) -> Self
pub fn resource_events(self, resource_events: Arc<ResourceEventHub>) -> Self
Sourcepub fn rx_sessions(self, rx_sessions: Arc<RxSessionManager>) -> Self
pub fn rx_sessions(self, rx_sessions: Arc<RxSessionManager>) -> Self
Inject the process-wide RX session registry (ring + pump + shared
cursor). One per server process; clone the same Arc into every
HTTP handler factory so stateless requests share ring/cursor state.
Sourcepub fn build(self) -> SerialHandler
pub fn build(self) -> SerialHandler
Consume the builder and produce a SerialHandler.
Spawns the reconnect supervisor exactly once. When no
SerialHandlerBuilder::rx_sessions was injected, one manager is
constructed here for the standalone handler.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for SerialHandlerBuilder
impl !UnwindSafe for SerialHandlerBuilder
impl Freeze for SerialHandlerBuilder
impl Send for SerialHandlerBuilder
impl Sync for SerialHandlerBuilder
impl Unpin for SerialHandlerBuilder
impl UnsafeUnpin for SerialHandlerBuilder
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