pub struct HttpServer { /* private fields */ }
Implementations§
Source§impl HttpServer
impl HttpServer
pub fn new(addr: SocketAddr) -> Self
Trait Implementations§
Source§impl Actor for HttpServer
impl Actor for HttpServer
Source§impl<T: Actor> InterruptedBy<T> for HttpServer
impl<T: Actor> InterruptedBy<T> for HttpServer
Source§impl<T: Actor> StartedBy<T> for HttpServer
impl<T: Actor> StartedBy<T> for HttpServer
Auto Trait Implementations§
impl Freeze for HttpServer
impl !RefUnwindSafe for HttpServer
impl Send for HttpServer
impl Sync for HttpServer
impl Unpin for HttpServer
impl !UnwindSafe for HttpServer
Blanket Implementations§
Source§impl<T, S> ActionHandler<Awake<S>> for T
impl<T, S> ActionHandler<Awake<S>> for T
Source§fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_input: Awake<S>,
ctx: &'life1 mut Context<T>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
T: 'async_trait,
fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_input: Awake<S>,
ctx: &'life1 mut Context<T>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
T: 'async_trait,
Asyncronous method that receives incoming message.
Source§impl<T, S> ActionHandler<Interrupt<S>> for Twhere
T: InterruptedBy<S>,
S: Actor,
impl<T, S> ActionHandler<Interrupt<S>> for Twhere
T: InterruptedBy<S>,
S: Actor,
Source§fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_input: Interrupt<S>,
ctx: &'life1 mut Context<T>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
T: 'async_trait,
fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_input: Interrupt<S>,
ctx: &'life1 mut Context<T>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
T: 'async_trait,
Asyncronous method that receives incoming message.
Source§impl<T, C> ActionHandler<TaskDone<C>> for Twhere
T: TaskEliminated<C>,
C: LiteTask,
impl<T, C> ActionHandler<TaskDone<C>> for Twhere
T: TaskEliminated<C>,
C: LiteTask,
Source§fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
done: TaskDone<C>,
ctx: &'life1 mut Context<T>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
T: 'async_trait,
fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
done: TaskDone<C>,
ctx: &'life1 mut Context<T>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
T: 'async_trait,
Asyncronous method that receives incoming message.
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