Enum ya_relay_stack::IngressEvent
source · pub enum IngressEvent {
InboundConnection {
desc: SocketDesc,
},
Disconnected {
desc: SocketDesc,
},
Packet {
desc: SocketDesc,
payload: Vec<u8>,
},
}Variants§
InboundConnection
Fields
§
desc: SocketDescNew connection to a bound endpoint
Disconnected
Fields
§
desc: SocketDescDisconnection from a bound endpoint
Packet
Bound endpoint packet
Trait Implementations§
source§impl Clone for IngressEvent
impl Clone for IngressEvent
source§fn clone(&self) -> IngressEvent
fn clone(&self) -> IngressEvent
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 IngressEvent
impl Send for IngressEvent
impl Sync for IngressEvent
impl Unpin for IngressEvent
impl UnwindSafe for IngressEvent
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