pub struct RawInput {
pub rx: MessageReceiver,
pub source: NodeLayout,
pub layout: InputLayout,
}
Expand description
Not typed Input to receive data from the dataflow
Fields§
§rx: MessageReceiver
The receiver part of the MPSC channel
source: NodeLayout
The source node layout, useful for debugging
layout: InputLayout
The layout of the input, useful for debugging
Implementations§
Source§impl RawInput
impl RawInput
Sourcepub fn new(rx: MessageReceiver, source: NodeLayout, layout: InputLayout) -> Self
pub fn new(rx: MessageReceiver, source: NodeLayout, layout: InputLayout) -> Self
Create a new RawInput instance
Sourcepub fn blocking_recv(&mut self) -> Result<(Header, ArrayData)>
pub fn blocking_recv(&mut self) -> Result<(Header, ArrayData)>
Receive a message from the channel, blocking until one is available, don’t use it in async context
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RawInput
impl RefUnwindSafe for RawInput
impl Send for RawInput
impl Sync for RawInput
impl Unpin for RawInput
impl UnwindSafe for RawInput
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