pub struct Io { /* private fields */ }Expand description
The queues bound to a node’s ports, handed to Node::start, with what the node may need
to know about them: the time base its inputs are on and the properties of the outputs they
read.
Implementations§
Source§impl Io
impl Io
Sourcepub fn time_base(&self) -> Option<TimeBase>
pub fn time_base(&self) -> Option<TimeBase>
The clock of the source the node’s inputs come from; None for a node without inputs.
Decoders turn bit times and timeouts into ticks with it.
Sourcepub fn input_props(&self, index: usize) -> &Props
pub fn input_props(&self, index: usize) -> &Props
The properties the output connected to input port index declares: what the bus
promised, such as its word width.
§Panics
When the node declared no such port.
Sourcepub fn input<T: 'static>(&mut self, index: usize) -> Inbox<T>
pub fn input<T: 'static>(&mut self, index: usize) -> Inbox<T>
The reader on input port index.
§Panics
When the node declared no such port, bound it already, or declared it with another
event type than T: all mistakes in the node itself, not in the graph.
Sourcepub fn signal(&mut self, index: usize) -> SignalCursor
pub fn signal(&mut self, index: usize) -> SignalCursor
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Io
impl !Send for Io
impl !Sync for Io
impl !UnwindSafe for Io
impl Freeze for Io
impl Unpin for Io
impl UnsafeUnpin for Io
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