[][src]Trait portus::DatapathTrait

pub trait DatapathTrait {
    fn get_sock_id(&self) -> u32;
fn set_program(
        &mut self,
        program_name: &'static str,
        fields: Option<&[(&str, u32)]>
    ) -> Result<Scope>;
fn update_field(&self, sc: &Scope, update: &[(&str, u32)]) -> Result<()>; }

A collection of methods to interact with the datapath.

Required methods

fn get_sock_id(&self) -> u32

fn set_program(
    &mut self,
    program_name: &'static str,
    fields: Option<&[(&str, u32)]>
) -> Result<Scope>

Tell datapath to use a preinstalled program.

fn update_field(&self, sc: &Scope, update: &[(&str, u32)]) -> Result<()>

Update the value of a register in an already-installed fold function.

Loading content...

Implementors

impl<T: Ipc> DatapathTrait for Datapath<T>[src]

Loading content...