pub struct CertifierService {
pub suffix: Suffix<CandidateMessage>,
pub certifier: Certifier,
pub system: System,
pub message_channel_rx: Receiver<ChannelMessage<CandidateMessage>>,
pub commit_offset: Arc<AtomicI64>,
pub decision_outbox_tx: Sender<DecisionOutboxChannelMessage>,
pub config: CertifierServiceConfig,
}Fields§
§suffix: Suffix<CandidateMessage>§certifier: Certifier§system: System§message_channel_rx: Receiver<ChannelMessage<CandidateMessage>>§commit_offset: Arc<AtomicI64>§decision_outbox_tx: Sender<DecisionOutboxChannelMessage>§config: CertifierServiceConfigImplementations§
Source§impl CertifierService
impl CertifierService
pub fn new( message_channel_rx: Receiver<ChannelMessage<CandidateMessage>>, decision_outbox_tx: Sender<DecisionOutboxChannelMessage>, commit_offset: Arc<AtomicI64>, system: System, config: Option<CertifierServiceConfig>, ) -> Self
pub async fn process_message( &mut self, channel_message: &Option<ChannelMessage<CandidateMessage>>, ) -> ServiceResult
Trait Implementations§
Source§impl SystemService for CertifierService
impl SystemService for CertifierService
Auto Trait Implementations§
impl !RefUnwindSafe for CertifierService
impl !UnwindSafe for CertifierService
impl Freeze for CertifierService
impl Send for CertifierService
impl Sync for CertifierService
impl Unpin for CertifierService
impl UnsafeUnpin for CertifierService
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