Enum futuresdr::runtime::BlockMessage
source · pub enum BlockMessage {
Initialize,
Terminate,
Notify,
BlockDescription {
tx: Sender<BlockDescription>,
},
StreamOutputInit {
src_port: usize,
writer: BufferWriter,
},
StreamInputInit {
dst_port: usize,
reader: BufferReader,
},
StreamInputDone {
input_id: usize,
},
StreamOutputDone {
output_id: usize,
},
MessageOutputConnect {
src_port: usize,
dst_port: usize,
dst_inbox: Sender<BlockMessage>,
},
Call {
port_id: PortId,
data: Pmt,
},
Callback {
port_id: PortId,
data: Pmt,
tx: Sender<Result<Pmt, Error>>,
},
}
Expand description
Block inbox message type
Variants§
Initialize
Initialize
Terminate
Terminate
Notify
Notify
BlockDescription
Fields
§
tx: Sender<BlockDescription>
Channel for return value
Get BlockDescription
StreamOutputInit
Initialize StreamOutput
StreamInputInit
Initialize StreamInput
StreamInputDone
Stream input port is done
StreamOutputDone
Stream output port is done
MessageOutputConnect
Fields
§
dst_inbox: Sender<BlockMessage>
Destination block inbox
Connect message output
Call
Call handler (return value is ignored)
Callback
Fields
Call handler
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for BlockMessage
impl Send for BlockMessage
impl !Sync for BlockMessage
impl Unpin for BlockMessage
impl !UnwindSafe for BlockMessage
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