pub(crate) struct ServerConfig {
pub endpoint: Endpoint,
pub tcp_config: TcpConfig,
pub tls_config: Option<ServerTlsConfig>,
pub quic_config: Option<ServerQuicConfig>,
pub services: HashMap<String, Arc<dyn RPCService + 'static>>,
pub pubsub_services: HashMap<String, Arc<dyn PubSubRPCService + 'static>>,
pub read_timeout: Option<Duration>,
pub handshake_timeout: Duration,
pub notification_encoder: fn(NewNotification) -> Notification,
}Fields§
§endpoint: Endpoint§tcp_config: TcpConfig§tls_config: Option<ServerTlsConfig>§quic_config: Option<ServerQuicConfig>§services: HashMap<String, Arc<dyn RPCService + 'static>>§pubsub_services: HashMap<String, Arc<dyn PubSubRPCService + 'static>>§read_timeout: Option<Duration>None (the default) means never. Set via
ServerBuilder::read_timeout.
handshake_timeout: DurationSet via ServerBuilder::handshake_timeout.
notification_encoder: fn(NewNotification) -> NotificationUser-customizable notification wire format.
Set via ServerBuilder::with_notification_encoder.
Auto Trait Implementations§
impl !RefUnwindSafe for ServerConfig
impl !UnwindSafe for ServerConfig
impl Freeze for ServerConfig
impl Send for ServerConfig
impl Sync for ServerConfig
impl Unpin for ServerConfig
impl UnsafeUnpin for ServerConfig
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