pub struct ActixServer;Expand description
Serves an actix-web route at the address its setup names.
Trait Implementations§
Source§impl Debug for ActixServer
impl Debug for ActixServer
Source§impl Default for ActixServer
impl Default for ActixServer
Source§fn default() -> ActixServer
fn default() -> ActixServer
Returns the “default value” for a type. Read more
Source§impl HttpServerAlg for ActixServer
impl HttpServerAlg for ActixServer
Source§type Program = ActixRoute
type Program = ActixRoute
Carries the executable HTTP surface this server serves.
Source§async fn open(
&mut self,
setup: HttpServerSetup<Self::Program>,
) -> Result<Self::Open, Self::Error>
async fn open( &mut self, setup: HttpServerSetup<Self::Program>, ) -> Result<Self::Open, Self::Error>
Opens the address a setup names and resolves only once it is ready to serve. Read more
Auto Trait Implementations§
impl Freeze for ActixServer
impl RefUnwindSafe for ActixServer
impl Send for ActixServer
impl Sync for ActixServer
impl Unpin for ActixServer
impl UnsafeUnpin for ActixServer
impl UnwindSafe for ActixServer
Blanket Implementations§
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
Source§impl<This> HttpProgramExt<This> for This
impl<This> HttpProgramExt<This> for This
Source§fn compile_http<Program>(
&self,
program: Program,
) -> <Program as HttpProgramAlg<This>>::Routewhere
Program: HttpProgramAlg<This>,
fn compile_http<Program>(
&self,
program: Program,
) -> <Program as HttpProgramAlg<This>>::Routewhere
Program: HttpProgramAlg<This>,
Compiles a named HTTP program with this interpreter.
Source§impl<This> HttpServerExt<This> for Thiswhere
This: HttpServerAlg,
impl<This> HttpServerExt<This> for Thiswhere
This: HttpServerAlg,
Source§fn lifecycle<Commands>(
self,
commands: Commands,
) -> impl Stream<Item = HttpServerEvent<<This as HttpServerAlg>::Error>>
fn lifecycle<Commands>( self, commands: Commands, ) -> impl Stream<Item = HttpServerEvent<<This as HttpServerAlg>::Error>>
Interprets lifecycle commands as the ordered transitions this server makes.