Struct mini_server::Listener
source · pub struct Listener { /* private fields */ }
Implementations§
source§impl Listener
impl Listener
pub fn new(handler: EventHandler) -> Self
pub fn notify(&self, req: &HTTPRequest, res: &mut HTTPResponse)
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Listener
impl Send for Listener
impl Sync for Listener
impl Unpin for Listener
impl UnwindSafe for Listener
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