pub struct EngineOutput {
pub destination: TransportAddr,
pub data: Vec<u8>,
}Expand description
Output from the engine to be transmitted
Fields§
§destination: TransportAddrDestination address
data: Vec<u8>Packet data to send
Implementations§
Source§impl EngineOutput
impl EngineOutput
Sourcepub fn new(destination: TransportAddr, data: Vec<u8>) -> Self
pub fn new(destination: TransportAddr, data: Vec<u8>) -> Self
Create a new engine output
Trait Implementations§
Source§impl Clone for EngineOutput
impl Clone for EngineOutput
Source§fn clone(&self) -> EngineOutput
fn clone(&self) -> EngineOutput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 EngineOutput
impl RefUnwindSafe for EngineOutput
impl Send for EngineOutput
impl Sync for EngineOutput
impl Unpin for EngineOutput
impl UnsafeUnpin for EngineOutput
impl UnwindSafe for EngineOutput
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