Skip to content
Snippets Groups Projects
Verified Commit 4412e07f authored by João Magalhães's avatar João Magalhães :rocket:
Browse files

chore: rename state trait method

parent 5a47fbd3
No related branches found
No related tags found
1 merge request!59`StateComponent` creation and implementation
......@@ -60,7 +60,7 @@ pub const BESS_MAGIC: u32 = 0x53534542;
/// this trait to allow the state to be saved and restored
/// in a consistent way.
pub trait StateComponent {
fn get_state(&self) -> Result<Vec<u8>, Error>;
fn state(&self) -> Result<Vec<u8>, Error>;
fn set_state(&mut self, data: &[u8]) -> Result<(), Error>;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment