pub struct Block(_);
Implementations
sourceimpl Block
impl Block
pub fn new<T: Kernel + Send + 'static>(
meta: BlockMeta,
sio: StreamIo,
mio: MessageIo<T>,
kernel: T
) -> Block
pub fn kernel<T: Kernel + Send + 'static>(&self) -> Option<&T>
pub fn kernel_mut<T: Kernel + Send + 'static>(&mut self) -> Option<&T>
pub fn instance_name(&self) -> Option<&str>
pub fn set_instance_name(&mut self, name: impl AsRef<str>)
pub fn type_name(&self) -> &str
pub fn is_blocking(&self) -> bool
pub async fn init(&mut self) -> Result<()>
pub async fn work(&mut self, io: &mut WorkIo) -> Result<()>
pub async fn deinit(&mut self) -> Result<()>
pub fn commit(&mut self)
pub fn set_tag_propagation(
&mut self,
f: Box<dyn FnMut(&mut [StreamInput], &mut [StreamOutput]) + Send + 'static>
)
pub fn stream_inputs(&self) -> &Vec<StreamInput>
pub fn stream_inputs_mut(&mut self) -> &mut Vec<StreamInput>
pub fn stream_input(&self, id: usize) -> &StreamInput
pub fn stream_input_mut(&mut self, id: usize) -> &mut StreamInput
pub fn stream_input_name_to_id(&self, name: &str) -> Option<usize>
pub fn stream_outputs(&self) -> &Vec<StreamOutput>
pub fn stream_outputs_mut(&mut self) -> &mut Vec<StreamOutput>
pub fn stream_output(&self, id: usize) -> &StreamOutput
pub fn stream_output_mut(&mut self, id: usize) -> &mut StreamOutput
pub fn stream_output_name_to_id(&self, name: &str) -> Option<usize>
pub fn message_input_name_to_id(&self, name: &str) -> Option<usize>
pub fn message_input_names(&self) -> Vec<String>
pub fn message_outputs(&self) -> &Vec<MessageOutput>
pub fn message_outputs_mut(&mut self) -> &mut Vec<MessageOutput>
pub fn message_output(&self, id: usize) -> &MessageOutput
pub fn message_output_mut(&mut self, id: usize) -> &mut MessageOutput
pub fn message_output_name_to_id(&self, name: &str) -> Option<usize>
pub async fn call_handler(&mut self, id: usize, p: Pmt) -> Result<Pmt>
pub async fn post(&mut self, id: usize, p: Pmt)
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Block
impl Send for Block
impl !Sync for Block
impl Unpin for Block
impl !UnwindSafe for Block
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more