Trait portus::DatapathTrait [−][src]
pub trait DatapathTrait { fn install(
&self,
src: &[u8],
fields: Option<&[(&str, u32)]>
) -> Result<Scope>; fn update_field(&self, sc: &Scope, update: &[(&str, u32)]) -> Result<()>; fn get_sock_id(&self) -> u32; }
A collection of methods to interact with the datapath.
Required Methods
fn install(&self, src: &[u8], fields: Option<&[(&str, u32)]>) -> Result<Scope>
Install a fold function in the datapath.
fn update_field(&self, sc: &Scope, update: &[(&str, u32)]) -> Result<()>
Update the value of a register in an already-installed fold function.