pub struct Server { /* private fields */ }Implementations§
Source§impl Server
impl Server
pub fn new() -> Self
pub fn with_thread_pool_size(self, size: usize) -> Self
pub fn with_shutdown_signal(self, signal: ShutdownSignal) -> Self
pub fn with_transport<T>(self, transport: T) -> Selfwhere
T: Transport + 'static,
pub fn register<F, P, R>( &mut self, method: &str, handler: F, ) -> Result<(), Error>
pub fn run(&mut self) -> Result<(), Error>
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 UnsafeUnpin 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