pub struct HyperServerProc<M>{
pub settings: HyperServerSettings,
/* private fields */
}Expand description
Hyper server processor
Fields§
§settings: HyperServerSettingsSettings of the processor
Trait Implementations§
Source§impl<M, A> Proc<A> for HyperServerProc<M>
impl<M, A> Proc<A> for HyperServerProc<M>
Source§async fn internal_run(
&mut self,
name: String,
) -> Result<(), Box<dyn ProcError + Send + Sync>>
async fn internal_run( &mut self, name: String, ) -> Result<(), Box<dyn ProcError + Send + Sync>>
Main loop of the processor
Source§fn get_proc_threads(&self) -> usize
fn get_proc_threads(&self) -> usize
Get the number of processor threads the Processors’s
Runtime will use.
Must be implemented by the processor if more than one thread is to be used Read moreSource§impl<M> ProcBusParam for HyperServerProc<M>
impl<M> ProcBusParam for HyperServerProc<M>
Source§impl<M> ProcConfig<M> for HyperServerProc<M>
impl<M> ProcConfig<M> for HyperServerProc<M>
Source§impl<M> ProcEpilogue for HyperServerProc<M>
impl<M> ProcEpilogue for HyperServerProc<M>
Source§fn get_proc_restart_delay(&self) -> (Duration, u32)
fn get_proc_restart_delay(&self) -> (Duration, u32)
Getter to know timer for processor restart in case of error
Source§async fn remove_proc(
&self,
err: Option<Box<dyn ProcError + Send + Sync>>,
) -> Result<(), BusError>
async fn remove_proc( &self, err: Option<Box<dyn ProcError + Send + Sync>>, ) -> Result<(), BusError>
Method to remove the processor with a signal queue to the main task Read more
Source§fn is_stopping(&self) -> bool
fn is_stopping(&self) -> bool
Indicates whether ProSA is stopping
Prevents the rebooting of processors
Auto Trait Implementations§
impl<M> Freeze for HyperServerProc<M>
impl<M> !RefUnwindSafe for HyperServerProc<M>
impl<M> Send for HyperServerProc<M>
impl<M> Sync for HyperServerProc<M>
impl<M> Unpin for HyperServerProc<M>
impl<M> !UnwindSafe for HyperServerProc<M>
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> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request