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: NodeLayout, layout: InputLayout) -> Self
pub fn new(rx: MessageReceiver, source: NodeLayout, layout: InputLayout) -> Self
Create a new typed Input from a MessageReceiver, NodeLayout, and InputLayout
Sourcepub fn blocking_recv(&mut self) -> Result<(Header, T)>
pub fn blocking_recv(&mut self) -> Result<(Header, T)>
Receive a message from the channel and converting it from Arrow format, blocking until one is available, don’t use it in async context
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