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 moreAuto Trait Implementations§
impl RefUnwindSafe for EgressEvent
impl Send for EgressEvent
impl Sync for EgressEvent
impl Unpin for EgressEvent
impl UnwindSafe for EgressEvent
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more