Struct ya_relay_stack::EgressEvent
source · pub struct EgressEvent {
pub remote: Box<[u8]>,
pub payload: Box<[u8]>,
pub desc: Option<(SocketDesc, usize)>,
}Fields§
§remote: Box<[u8]>§payload: Box<[u8]>§desc: Option<(SocketDesc, usize)>Implementations§
source§impl EgressEvent
impl EgressEvent
pub fn from_eth_frame(data: Vec<u8>) -> Result<Self>
pub fn from_ip_packet(data: Vec<u8>) -> Result<Self>
Trait Implementations§
source§impl Clone for EgressEvent
impl Clone for EgressEvent
source§fn clone(&self) -> EgressEvent
fn clone(&self) -> EgressEvent
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more