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 duplicate 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 Freeze for EgressEvent
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