pub struct StateTracker { /* private fields */ }Expand description
Receives state updates from functioning parts of any program and proceeds to output them through an UnixDatagram socket.
The purpose which it full-fills is to allow microservices to communicate the current state of all their functionalities easily through a standardized way.
Implementations§
Source§impl StateTracker
impl StateTracker
Sourcepub fn try_new(
output_sender_path: &str,
output_receiver_path: &str,
receiver: Receiver<TrackedData>,
) -> Result<Self, Error>
pub fn try_new( output_sender_path: &str, output_receiver_path: &str, receiver: Receiver<TrackedData>, ) -> Result<Self, Error>
Tries to create an instance of StateTracker.
§Arguments
output_sender_path- Path to the UnixDatagram socket that will send the outputs.output_receiver_path- Path to the UnixDatagram socket that will receive the outputs.receiver- Receiver of TrackedData objects.
pub async fn run(self)
Auto Trait Implementations§
impl !Freeze for StateTracker
impl RefUnwindSafe for StateTracker
impl Send for StateTracker
impl Sync for StateTracker
impl Unpin for StateTracker
impl UnwindSafe for StateTracker
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