6#include <tl/expected.hpp>
8#include "raft/errors.hpp"
21 virtual tl::expected<void, Error>
saveState(std::vector<std::byte> state)
noexcept = 0;
26 virtual tl::expected<std::vector<std::byte>, Error>
loadState() noexcept = 0;
The interface for persisting the Raft server's state.
Definition persister.hpp:14
virtual tl::expected< void, Error > saveState(std::vector< std::byte > state) noexcept=0
virtual tl::expected< std::vector< std::byte >, Error > loadState() noexcept=0