pub struct ComponentOutput { /* private fields */ }
Expand description
A wrapper object for the packets returned from the collection call.
Implementations§
Source§impl ComponentOutput
impl ComponentOutput
Sourcepub fn new<S>(packets: S) -> Self
pub fn new<S>(packets: S) -> Self
Initialize a ComponentOutput with a Vec
Sourcepub fn new_from_ts(packets: TransportStream) -> Self
pub fn new_from_ts(packets: TransportStream) -> Self
Initialize a ComponentOutput with a TransportStream
Sourcepub async fn drain_port(&mut self, port: &str) -> Result<Vec<Packet>, Error>
pub async fn drain_port(&mut self, port: &str) -> Result<Vec<Packet>, Error>
Get a list of wasmflow_transport::MessageTransport from the specified port.
Auto Trait Implementations§
impl Freeze for ComponentOutput
impl !RefUnwindSafe for ComponentOutput
impl Send for ComponentOutput
impl Sync for ComponentOutput
impl Unpin for ComponentOutput
impl !UnwindSafe for ComponentOutput
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