struct Handles<S: Server> {
actix_server_handle: ServerHandle,
actix_join_handle: JoinHandle<Result<(), Error>>,
ph_join_handle: JoinHandle<Result<Option<Box<dyn Modifier<S>>>>>,
ph_shutdown_sender: Option<Sender<Infallible>>,
command_receiver: Receiver<CommandRequest<S>>,
drop_bomb: Bomb,
}Expand description
The handles to control an actix_web::dev::Server running a pubhubs Server.
Fields§
§actix_server_handle: ServerHandleHandle to the actual actix TCP server. The actix_web::dev::Server is owned by the task driving it.
actix_join_handle: JoinHandle<Result<(), Error>>Handle to the task driving the actix TCP server
ph_join_handle: JoinHandle<Result<Option<Box<dyn Modifier<S>>>>>Handle to the task running (discovery for) the PubHubs server.
ph_shutdown_sender: Option<Sender<Infallible>>Dropped to order ph_join_handle to shutdown. None when used.
command_receiver: Receiver<CommandRequest<S>>Receives commands from the Apps
drop_bomb: BombTo check whether Handles::shutdown was completed before being dropped
Implementations§
Auto Trait Implementations§
impl<S> Freeze for Handles<S>
impl<S> !RefUnwindSafe for Handles<S>
impl<S> !Send for Handles<S>
impl<S> !Sync for Handles<S>
impl<S> Unpin for Handles<S>
impl<S> UnsafeUnpin for Handles<S>
impl<S> !UnwindSafe for Handles<S>
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