pub struct Server { /* private fields */ }Implementations§
Source§impl Server
impl Server
pub fn new() -> Self
pub async fn host<T>(&mut self, host: T) -> &mut Self
pub async fn port(&mut self, port: usize) -> &mut Self
pub async fn log_dir<T>(&mut self, log_dir: T) -> &mut Self
pub async fn log_size(&mut self, log_size: usize) -> &mut Self
pub async fn log_interval_millis(&mut self, interval_millis: usize) -> &mut Self
pub async fn print(&mut self, print: bool) -> &mut Self
pub async fn enable_print(&mut self) -> &mut Self
pub async fn disable_print(&mut self) -> &mut Self
pub async fn open_print(&mut self, print: bool) -> &mut Self
pub async fn buffer(&mut self, buffer_size: usize) -> &mut Self
pub async fn func<F, Fut>(&mut self, func: F) -> &mut Self
pub async fn listen(&mut self)
Source§impl Server
impl Server
pub fn get_cfg(&self) -> &Arc<RwLock<ServerConfig>>
pub fn get_mut_cfg(&mut self) -> &mut Arc<RwLock<ServerConfig>>
pub fn set_cfg(&mut self, val: Arc<RwLock<ServerConfig>>) -> &mut Self
pub fn get_func_list(&self) -> &Arc<RwLock<Vec<Box<dyn Func + Send + 'static>>>>
pub fn get_mut_func_list( &mut self, ) -> &mut Arc<RwLock<Vec<Box<dyn Func + Send + 'static>>>>
pub fn set_func_list( &mut self, val: Arc<RwLock<Vec<Box<dyn Func + Send + 'static>>>>, ) -> &mut Self
pub fn get_tmp(&self) -> &Arc<RwLock<Tmp>>
pub fn get_mut_tmp(&mut self) -> &mut Arc<RwLock<Tmp>>
pub fn set_tmp(&mut self, val: Arc<RwLock<Tmp>>) -> &mut Self
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