[−][src]Struct jsonrpc_ipc_server::ServerBuilder
IPC server builder
Implementations
impl<M: Metadata + Default, S: Middleware<M>> ServerBuilder<M, S> where
S::Future: Unpin,
S::CallFuture: Unpin,
[src]
S::Future: Unpin,
S::CallFuture: Unpin,
pub fn new<T>(io_handler: T) -> ServerBuilder<M, S> where
T: Into<MetaIoHandler<M, S>>,
[src]
T: Into<MetaIoHandler<M, S>>,
Creates new IPC server build given the IoHandler
.
impl<M: Metadata, S: Middleware<M>> ServerBuilder<M, S> where
S::Future: Unpin,
S::CallFuture: Unpin,
[src]
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>,
[src]
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.
pub fn event_loop_executor(mut self: Self, executor: TaskExecutor) -> Self
[src]
Sets shared different event loop executor.
pub fn session_meta_extractor<X>(mut self: Self, meta_extractor: X) -> Self where
X: MetaExtractor<M>,
[src]
X: MetaExtractor<M>,
Sets session metadata extractor.
pub fn session_stats<T: SessionStats>(mut self: Self, stats: T) -> Self
[src]
Session stats
pub fn request_separators(
mut self: Self,
incoming: Separator,
outgoing: Separator
) -> Self
[src]
mut self: Self,
incoming: Separator,
outgoing: Separator
) -> Self
Sets the incoming and outgoing requests separator
pub fn set_security_attributes(mut self: Self, attr: SecurityAttributes) -> Self
[src]
Sets the security attributes for the underlying IPC socket/pipe
pub fn set_client_buffer_size(mut self: Self, buffer_size: usize) -> Self
[src]
Sets how many concurrent requests per client can be processed at any one time. Set to 5 by default.
pub fn start(self, path: &str) -> Result<Server>
[src]
Creates a new server from the given endpoint.
Auto Trait Implementations
impl<M = (), S = Noop> !RefUnwindSafe for ServerBuilder<M, S>
[src]
impl<M, S> Send for ServerBuilder<M, S>
[src]
impl<M, S> Sync for ServerBuilder<M, S>
[src]
impl<M, S> Unpin for ServerBuilder<M, S>
[src]
impl<M = (), S = Noop> !UnwindSafe for ServerBuilder<M, S>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,