pub struct Server {
pub interpreter: Option<Arc<Mutex<Interpreter>>>,
pub tls_config: Option<TlsConfig>,
pub rustls_config: Option<Arc<ServerConfig>>,
}Fields§
§interpreter: Option<Arc<Mutex<Interpreter>>>§tls_config: Option<TlsConfig>§rustls_config: Option<Arc<ServerConfig>>Implementations§
Source§impl Server
impl Server
pub fn from_interpreter( interpreter: Interpreter, tls_config: Option<TlsConfig>, ) -> Self
pub fn enable_tls( &mut self, cert_path: String, key_path: String, ) -> Result<(), CoreError>
pub fn disable_tls(&mut self)
pub fn is_tls_enabled(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Server
impl !RefUnwindSafe for Server
impl Send for Server
impl Sync for Server
impl Unpin for Server
impl !UnwindSafe for Server
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