[][src]Struct actix_web::dev::Server

pub struct Server(_, _);


impl Server[src]

pub fn build() -> ServerBuilder[src]

Start server building process

pub fn pause(&self) -> impl Future<Output = ()>[src]

Pause accepting incoming connections

If socket contains some pending connection, they might be dropped. All opened connection remains active.

pub fn resume(&self) -> impl Future<Output = ()>[src]

Resume accepting incoming connections

pub fn stop(&self, graceful: bool) -> impl Future<Output = ()>[src]

Stop incoming connection processing, stop all workers and exit.

If server starts with spawn() method, then spawned thread get terminated.

Trait Implementations

impl Clone for Server[src]

impl Debug for Server[src]

impl Future for Server[src]

type Output = Result<(), Error>

The type of value produced on completion.

Auto Trait Implementations

impl !RefUnwindSafe for Server

impl Send for Server

impl Sync for Server

impl Unpin for Server

impl !UnwindSafe for Server

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> From<T> for T[src]

impl<T> FutureExt for T where
    T: Future + ?Sized

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<F, T, E> TryFuture for F where
    F: Future<Output = Result<T, E>> + ?Sized

type Ok = T

The type of successful values yielded by this future

type Error = E

The type of failures yielded by this future

impl<Fut> TryFutureExt for Fut where
    Fut: TryFuture + ?Sized

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,