pub struct Input<T: ArrowMessage> {
pub raw: RawInput,
/* private fields */
}
Expand description
Typed Input to receive data from the dataflow
Fields§
§raw: RawInput
Implementations§
Source§impl<T: ArrowMessage> Input<T>
impl<T: ArrowMessage> Input<T>
Sourcepub fn new(rx: MessageReceiver, source: NodeID, layout: InputID) -> Self
pub fn new(rx: MessageReceiver, source: NodeID, layout: InputID) -> Self
Create a new typed Input from a MessageReceiver, NodeID, and InputID
Sourcepub async fn recv(&mut self) -> Result<TypedDataflowMessage<T>>
pub async fn recv(&mut self) -> Result<TypedDataflowMessage<T>>
Receive a message from the channel and converting it from Arrow format, asyncronously
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Input<T>
impl<T> RefUnwindSafe for Input<T>where
T: RefUnwindSafe,
impl<T> Send for Input<T>where
T: Send,
impl<T> Sync for Input<T>where
T: Sync,
impl<T> Unpin for Input<T>where
T: Unpin,
impl<T> UnwindSafe for Input<T>where
T: UnwindSafe,
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