Struct thruster::Server[][src]

pub struct Server<T: 'static + Context<Response = Response> + Clone + Send + Sync, S: 'static + Send> { /* fields omitted */ }

Trait Implementations

impl<T: Context<Response = Response> + Clone + Send + Sync, S: 'static + Send + Sync> ThrusterServer for Server<T, S>[src]

type Context = T

type Response = Response

type Request = Request

type State = S

fn new(app: App<Self::Request, T, S>) -> Self[src]

fn build<'life0, 'async_trait>(
    self,
    host: &'life0 str,
    port: u16
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

fn start(self, host: &str, port: u16) where
    Self: Sized
[src]

Auto Trait Implementations

impl<T, S> !RefUnwindSafe for Server<T, S>

impl<T, S> Send for Server<T, S> where
    S: Sync

impl<T, S> Sync for Server<T, S> where
    S: Sync

impl<T, S> Unpin for Server<T, S>

impl<T, S> !UnwindSafe for Server<T, S>

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.