pub struct ReactorRegistrar<R, CODEC = Bincode>{ /* private fields */ }
Expand description
A registrar for reactor workers.
Implementations§
Source§impl<R, CODEC> ReactorRegistrar<R, CODEC>
impl<R, CODEC> ReactorRegistrar<R, CODEC>
Sourcepub 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.
Sourcepub fn register(&self)where
<R::Scope as ReactorScoped>::Input: Serialize + for<'de> Deserialize<'de>,
<R::Scope as ReactorScoped>::Output: Serialize + for<'de> Deserialize<'de>,
pub fn register(&self)where
<R::Scope as ReactorScoped>::Input: Serialize + for<'de> Deserialize<'de>,
<R::Scope as ReactorScoped>::Output: Serialize + for<'de> Deserialize<'de>,
Registers the worker.
Trait Implementations§
Source§impl<R, CODEC> Debug for ReactorRegistrar<R, CODEC>
impl<R, CODEC> Debug for ReactorRegistrar<R, CODEC>
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.