Simple subscribe mechanism

This commit is contained in:
2025-12-03 14:13:03 +01:00
parent 2152cb7926
commit 339be7f5c6
5 changed files with 162 additions and 7 deletions

View File

@@ -30,6 +30,18 @@ pub enum MinecraftVersion {
Snapshot(Snapshot),
}
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum StreamType {
Stdout,
Stderr,
}
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct StreamLine {
source: StreamType,
val: String,
}
impl Display for Version {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "{}.{}.{}", self.major, self.minor, self.patch)