Variants
Sync(Box<dyn SyncBlockT>)
Async(Box<dyn AsyncBlockT>)
Implementations
sourceimpl Block
impl Block
pub fn new_async<T: AsyncKernel + Send + 'static>(
meta: BlockMeta,
sio: StreamIo,
mio: MessageIo<T>,
kernel: T
) -> Block
pub fn new_sync<T: SyncKernel + Send + 'static>(
meta: BlockMeta,
sio: StreamIo,
mio: MessageIo<T>,
kernel: T
) -> Block
pub fn as_async<T: AsyncKernel + Send + 'static>(&self) -> Option<&T>
pub fn as_async_mut<T: AsyncKernel + Send + 'static>(&mut self) -> Option<&T>
pub fn as_sync<T: SyncKernel + Send + 'static>(&self) -> Option<&T>
pub fn as_sync_mut<T: SyncKernel + Send + 'static>(&mut self) -> Option<&T>
pub fn as_any(&self) -> &dyn Any
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 deinit(&mut self) -> Result<()>
pub fn stream_inputs(&self) -> &Vec<StreamInput>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
pub fn stream_inputs_mut(&mut self) -> &mut Vec<StreamInput>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
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>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
pub fn stream_outputs_mut(&mut self) -> &mut Vec<StreamOutput>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
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_is_async(&self, id: usize) -> bool
pub fn message_input_name_to_id(&self, name: &str) -> Option<usize>
pub fn message_outputs(&self) -> &Vec<MessageOutput>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
pub fn message_outputs_mut(&mut self) -> &mut Vec<MessageOutput>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
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 fn call_sync_handler(&mut self, id: usize, p: Pmt) -> Result<Pmt>
pub async fn call_async_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 · sourcepub fn borrow_mut(&mut self) -> &mut T
pub 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>,
pub 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