pub struct TestSinkNodeTensor { /* private fields */ }Expand description
test sink
Implementations§
Source§impl TestSinkNodeTensor
impl TestSinkNodeTensor
Sourcepub const fn new(
node_capabilities: NodeCapabilities,
node_policy: NodePolicy,
input_placement_acceptance: [PlacementAcceptance; 1],
printer: fn(&str),
) -> Self
pub const fn new( node_capabilities: NodeCapabilities, node_policy: NodePolicy, input_placement_acceptance: [PlacementAcceptance; 1], printer: fn(&str), ) -> Self
new
Trait Implementations§
Source§impl Sink<Tensor<u32, TEST_TENSOR_ELEMENT_COUNT, 2>, 1> for TestSinkNodeTensor
impl Sink<Tensor<u32, TEST_TENSOR_ELEMENT_COUNT, 2>, 1> for TestSinkNodeTensor
Source§type Error = Infallible
type Error = Infallible
Sink-specific error type for
open() or consume().Source§fn open(&mut self) -> Result<(), Self::Error>
fn open(&mut self) -> Result<(), Self::Error>
Prepare the sink for consumption (open file/device, connect network, etc.). Read more
Source§fn consume(&mut self, msg: &Message<TestTensor>) -> Result<(), Self::Error>
fn consume(&mut self, msg: &Message<TestTensor>) -> Result<(), Self::Error>
Consume a single message pulled from
port. Read moreSource§fn input_acceptance(&self) -> [PlacementAcceptance; 1]
fn input_acceptance(&self) -> [PlacementAcceptance; 1]
Input placement acceptances for zero-copy compatibility.
Source§fn capabilities(&self) -> NodeCapabilities
fn capabilities(&self) -> NodeCapabilities
Describe sink capabilities (device streams, degrade tiers, etc.).
Source§fn policy(&self) -> NodePolicy
fn policy(&self) -> NodePolicy
Provide the node policy bundle (batching/budget/deadlines).
Source§fn select_input(&mut self, occ: &[EdgeOccupancy; IN]) -> Option<usize>
fn select_input(&mut self, occ: &[EdgeOccupancy; IN]) -> Option<usize>
Optional: choose which input to read this step based on occupancies. Read more
Auto Trait Implementations§
impl Freeze for TestSinkNodeTensor
impl RefUnwindSafe for TestSinkNodeTensor
impl Send for TestSinkNodeTensor
impl Sync for TestSinkNodeTensor
impl Unpin for TestSinkNodeTensor
impl UnsafeUnpin for TestSinkNodeTensor
impl UnwindSafe for TestSinkNodeTensor
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