[−][src]Struct plumcast::service::ServiceBuilder
The builder of Service
.
Methods
impl ServiceBuilder
[src]
pub fn new(rpc_server_bind_addr: SocketAddr) -> Self
[src]
Makes a new ServiceBuilder
instance with the default settings.
pub fn logger(self, logger: Logger) -> Self
[src]
Sets the logger used by the service.
The default value is Logger::root(Discard, o!())
.
pub fn metrics(self, metrics: MetricBuilder) -> Self
[src]
Sets the metrics settings of the service.
The default value is MetricBuilder::new()
.
pub fn rpc_server_builder_mut(&mut self) -> &mut RpcServerBuilder
[src]
Returns a mutable reference to the RPC server builder.
pub fn finish<S, M, G>(self, spawner: S, local_id_gen: G) -> Service<M> where
S: Spawn + Send + Sync + 'static,
M: MessagePayload,
G: GenerateLocalNodeId,
[src]
S: Spawn + Send + Sync + 'static,
M: MessagePayload,
G: GenerateLocalNodeId,
Builds a Service
with the given settings.
Trait Implementations
Auto Trait Implementations
impl Send for ServiceBuilder
impl !Sync for ServiceBuilder
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,