pub struct WishHandlerFactory { /* private fields */ }Expand description
Factory for creating WishHandler instances.
Implementations§
Source§impl WishHandlerFactory
impl WishHandlerFactory
Sourcepub fn new(options: ServerOptions) -> Self
pub fn new(options: ServerOptions) -> Self
Creates a new handler factory.
Sourcepub fn create_handler(
&self,
remote_addr: SocketAddr,
local_addr: SocketAddr,
) -> WishHandler
pub fn create_handler( &self, remote_addr: SocketAddr, local_addr: SocketAddr, ) -> WishHandler
Creates a handler for a new connection.
Auto Trait Implementations§
impl Freeze for WishHandlerFactory
impl !RefUnwindSafe for WishHandlerFactory
impl Send for WishHandlerFactory
impl Sync for WishHandlerFactory
impl Unpin for WishHandlerFactory
impl !UnwindSafe for WishHandlerFactory
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