tests for minecraft-server container, save rpc before changing control method
This commit is contained in:
17
src/rpc/rpc_client.rs
Normal file
17
src/rpc/rpc_client.rs
Normal 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
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user