Struct tinyhttp_internal::config::HttpListener
source · [−]pub struct HttpListener {
pub config: Config,
pub pool: ThreadPool,
pub ssl_acpt: Option<Arc<SslAcceptor>>,
/* private fields */
}
Fields
config: Config
pool: ThreadPool
ssl_acpt: Option<Arc<SslAcceptor>>
Implementations
sourceimpl HttpListener
impl HttpListener
pub fn new(socket: TcpListener, config: Config) -> HttpListener
pub fn start(self)
pub fn get_stream(&self) -> Incoming<'_>
Auto Trait Implementations
impl !RefUnwindSafe for HttpListener
impl Send for HttpListener
impl Sync for HttpListener
impl Unpin for HttpListener
impl !UnwindSafe for HttpListener
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more