Struct ReactorRegistrar
pub struct ReactorRegistrar<R, CODEC = Bincode>{ /* private fields */ }
Expand description
A registrar for reactor workers.
Implementations§
§impl<R, CODEC> ReactorRegistrar<R, CODEC>
impl<R, CODEC> ReactorRegistrar<R, CODEC>
pub fn new() -> ReactorRegistrar<R, CODEC>
pub fn new() -> ReactorRegistrar<R, CODEC>
Creates a new reactor registrar.
pub fn encoding<C>(&self) -> ReactorRegistrar<R, C>where
C: Codec + 'static,
pub fn encoding<C>(&self) -> ReactorRegistrar<R, C>where
C: Codec + 'static,
Sets the encoding.
pub fn register(&self)where
<<R as Reactor>::Scope as ReactorScoped>::Input: Serialize + for<'de> Deserialize<'de>,
<<R as Reactor>::Scope as ReactorScoped>::Output: Serialize + for<'de> Deserialize<'de>,
pub fn register(&self)where
<<R as Reactor>::Scope as ReactorScoped>::Input: Serialize + for<'de> Deserialize<'de>,
<<R as Reactor>::Scope as ReactorScoped>::Output: Serialize + for<'de> Deserialize<'de>,
Registers the worker.
Trait Implementations§
§impl<R, CODEC> Debug for ReactorRegistrar<R, CODEC>
impl<R, CODEC> Debug for ReactorRegistrar<R, CODEC>
§impl<R, CODEC> Default for ReactorRegistrar<R, CODEC>
impl<R, CODEC> Default for ReactorRegistrar<R, CODEC>
§fn default() -> ReactorRegistrar<R, CODEC>
fn default() -> ReactorRegistrar<R, CODEC>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<R, CODEC> Freeze for ReactorRegistrar<R, CODEC>
impl<R, CODEC = Bincode> !RefUnwindSafe for ReactorRegistrar<R, CODEC>
impl<R, CODEC = Bincode> !Send for ReactorRegistrar<R, CODEC>
impl<R, CODEC = Bincode> !Sync for ReactorRegistrar<R, CODEC>
impl<R, CODEC> Unpin for ReactorRegistrar<R, CODEC>where
CODEC: Unpin,
impl<R, CODEC = Bincode> !UnwindSafe for ReactorRegistrar<R, CODEC>
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
Source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self
to a value of a Properties
struct.Source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
Source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self
to a value of a Properties
struct.