Struct jsonrpc_ipc_server::ServerBuilder [−][src]
pub struct ServerBuilder<M: Metadata = (), S: Middleware<M> = Noop> { /* fields omitted */ }
Expand description
IPC server builder
Implementations
impl<M: Metadata + Default, S: Middleware<M>> ServerBuilder<M, S> where
S::Future: Unpin,
S::CallFuture: Unpin,
impl<M: Metadata + Default, S: Middleware<M>> ServerBuilder<M, S> where
S::Future: Unpin,
S::CallFuture: Unpin,
Creates new IPC server build given the IoHandler
.
impl<M: Metadata, S: Middleware<M>> ServerBuilder<M, S> where
S::Future: Unpin,
S::CallFuture: Unpin,
impl<M: Metadata, S: Middleware<M>> ServerBuilder<M, S> where
S::Future: Unpin,
S::CallFuture: Unpin,
pub fn with_meta_extractor<T, E>(
io_handler: T,
extractor: E
) -> ServerBuilder<M, S> where
T: Into<MetaIoHandler<M, S>>,
E: MetaExtractor<M>,
pub fn with_meta_extractor<T, E>(
io_handler: T,
extractor: E
) -> ServerBuilder<M, S> where
T: Into<MetaIoHandler<M, S>>,
E: MetaExtractor<M>,
Creates new IPC server build given the IoHandler
and metadata extractor.
Sets shared different event loop executor.
Sets session metadata extractor.
Session stats
Sets the incoming and outgoing requests separator
Sets the security attributes for the underlying IPC socket/pipe
Sets how many concurrent requests per client can be processed at any one time. Set to 5 by default.
Auto Trait Implementations
impl<M = (), S = Noop> !RefUnwindSafe for ServerBuilder<M, S>
impl<M, S> Send for ServerBuilder<M, S>
impl<M, S> Sync for ServerBuilder<M, S>
impl<M, S> Unpin for ServerBuilder<M, S>
impl<M = (), S = Noop> !UnwindSafe for ServerBuilder<M, S>