webrtc_util::vnet::chunk

Trait Chunk

Source
pub trait Chunk: Display + Debug {
    // Required methods
    fn set_timestamp(&mut self) -> SystemTime;
    fn get_timestamp(&self) -> SystemTime;
    fn get_source_ip(&self) -> IpAddr;
    fn get_destination_ip(&self) -> IpAddr;
    fn set_source_addr(&mut self, address: &str) -> Result<()>;
    fn set_destination_addr(&mut self, address: &str) -> Result<()>;
    fn source_addr(&self) -> SocketAddr;
    fn destination_addr(&self) -> SocketAddr;
    fn user_data(&self) -> Vec<u8> ;
    fn tag(&self) -> String;
    fn network(&self) -> String;
    fn clone_to(&self) -> Box<dyn Chunk + Send + Sync>;
}

Required Methods§

Source

fn set_timestamp(&mut self) -> SystemTime

Source

fn get_timestamp(&self) -> SystemTime

Source

fn get_source_ip(&self) -> IpAddr

Source

fn get_destination_ip(&self) -> IpAddr

Source

fn set_source_addr(&mut self, address: &str) -> Result<()>

Source

fn set_destination_addr(&mut self, address: &str) -> Result<()>

Source

fn source_addr(&self) -> SocketAddr

Source

fn destination_addr(&self) -> SocketAddr

Source

fn user_data(&self) -> Vec<u8>

Source

fn tag(&self) -> String

Source

fn network(&self) -> String

Source

fn clone_to(&self) -> Box<dyn Chunk + Send + Sync>

Implementors§