tests for minecraft-server container, save rpc before changing control method

This commit is contained in:
2026-06-03 14:44:20 +02:00
parent dea2bd0af7
commit 3ce0f800a0
5 changed files with 32 additions and 1 deletions

17
src/rpc/rpc_client.rs Normal file
View File

@ -0,0 +1,17 @@
pub struct RpcClient{
pub read_buffer: Vec<u8>,
pub buffer: Vec<u8>,
pub close: bool
}
impl RpcClient {
pub fn new() -> Self {
Self {
read_buffer: vec![0; 1024],
buffer: vec![0; 10240],
close: true
}
}
}