Struct workflow_wasm::channel::MultiplexerClient
source · pub struct MultiplexerClient { /* private fields */ }Expand description
MultiplexerClient is an object meant to be used in WASM environment to
process channel events.
Implementations§
source§impl MultiplexerClient
impl MultiplexerClient
pub async fn start_notification_task<T>( &self, multiplexer: &Arc<Multiplexer<T>> ) -> Result<()>where T: Clone + Serialize + Send + Sync + 'static,
source§impl MultiplexerClient
impl MultiplexerClient
pub fn new() -> MultiplexerClient
pub fn set_handler(&self, callback: JsValue) -> Result<()>
sourcepub fn remove_handler(&self) -> Result<()>
pub fn remove_handler(&self) -> Result<()>
removeHandler must be called when releasing ReflectorClient
to stop the background event processing task
pub async fn stop_notification_task(&self) -> Result<()>
Trait Implementations§
source§impl Default for MultiplexerClient
impl Default for MultiplexerClient
source§impl From<MultiplexerClient> for JsValue
impl From<MultiplexerClient> for JsValue
source§fn from(value: MultiplexerClient) -> Self
fn from(value: MultiplexerClient) -> Self
Converts to this type from the input type.
source§impl FromWasmAbi for MultiplexerClient
impl FromWasmAbi for MultiplexerClient
source§impl IntoWasmAbi for MultiplexerClient
impl IntoWasmAbi for MultiplexerClient
source§impl RefFromWasmAbi for MultiplexerClient
impl RefFromWasmAbi for MultiplexerClient
§type Anchor = Ref<'static, MultiplexerClient>
type Anchor = Ref<'static, MultiplexerClient>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Auto Trait Implementations§
impl RefUnwindSafe for MultiplexerClient
impl Send for MultiplexerClient
impl Sync for MultiplexerClient
impl Unpin for MultiplexerClient
impl UnwindSafe for MultiplexerClient
Blanket Implementations§
source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere T: IntoWasmAbi,
§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abisource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.