struct Runner<ServerT: Server> {
pubhubs_server: Rc<ServerT>,
shutdown_receiver: Receiver<Infallible>,
worker_count: Option<NonZero<usize>>,
generation: usize,
}Expand description
Runs a Server
Fields§
§pubhubs_server: Rc<ServerT>§shutdown_receiver: Receiver<Infallible>§worker_count: Option<NonZero<usize>>§generation: usizeNumber of restarts (i.e. modifications applied)
Implementations§
Source§impl<S: Server> Runner<S>
impl<S: Server> Runner<S>
pub fn new( global_config: &Config, shutdown_receiver: Receiver<Infallible>, worker_count: Option<NonZero<usize>>, ) -> Result<Self>
fn create_actix_server(&self) -> Result<Handles<S>>
pub async fn run(self) -> Result<()>
pub async fn run_until_modifier( &mut self, ) -> Result<Box<dyn Modifier<S>>, Error>
async fn run_until_modifier_inner( handles: &mut Handles<S>, runner: &mut Runner<S>, ) -> Result<Box<dyn Modifier<S>>, Error>
Auto Trait Implementations§
impl<ServerT> Freeze for Runner<ServerT>
impl<ServerT> !RefUnwindSafe for Runner<ServerT>
impl<ServerT> !Send for Runner<ServerT>
impl<ServerT> !Sync for Runner<ServerT>
impl<ServerT> Unpin for Runner<ServerT>
impl<ServerT> UnsafeUnpin for Runner<ServerT>
impl<ServerT> !UnwindSafe for Runner<ServerT>
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more