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: &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_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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more