[][src]Struct blink::Blink

pub struct Blink { /* fields omitted */ }

Methods

impl Blink[src]

pub fn new() -> Self[src]

pub fn routes(
    self,
    routes: HashMap<(Method, String), Box<dyn Route<Method = Method>>>
) -> Self
[src]

pub fn port(self, port_num: u64) -> Self[src]

pub fn run(self) -> Result<(), Error>[src]

Trait Implementations

impl<'b> Service for &'b Blink[src]

type Request = Request

Requests handled by the service.

type Response = Response

Responses given by the service.

type Error = Error

Errors produced by the service.

type Future = FutureResult<Response, Error>

The future response value.

Auto Trait Implementations

impl !Send for Blink

impl !Sync for Blink

Blanket Implementations

impl<T> From for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.

impl<T> Erased for T