Trait webrtc_util::vnet::chunk::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§