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 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>>§notification_encoder: fn(NewNotification) -> NotificationUser-customizable notification wire format.
Set via ServerBuilder::with_notification_encoder.
Auto Trait Implementations§
impl Freeze for ServerConfig
impl !RefUnwindSafe for ServerConfig
impl Send for ServerConfig
impl Sync for ServerConfig
impl Unpin for ServerConfig
impl UnsafeUnpin for ServerConfig
impl !UnwindSafe 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