dcs2 0.1.0

An extensible distributed control system framework made in rust with no-std support.
Documentation
//! # DCS Membership module
//! The membership module includes interfaces to allow for membership discovery. It includes
//! the messages used in said exchange as well as a generic implementation of a membership client
//! designed to talk to a membership service.

pub mod client;
pub mod metadata;

use crate::communication::ConnectionError;
use crate::CodificationError;

#[allow(clippy::large_enum_variant)]
pub enum MembershipServiceError {
    ConnectionError(ConnectionError),
    CodificationError(CodificationError),
}

impl From<CodificationError> for MembershipServiceError {
    fn from(e: CodificationError) -> Self {
        MembershipServiceError::CodificationError(e)
    }
}