pub struct Handlers { /* private fields */ }Expand description
A list of all the operations exported by a wasmrs implementer.
Implementations§
source§impl Handlers
impl Handlers
sourcepub fn op_list(&self) -> &OperationList
pub fn op_list(&self) -> &OperationList
Get the operation list.
sourcepub fn register_request_response(
&mut self,
ns: impl AsRef<str>,
op: impl AsRef<str>,
handler: OperationHandler<IncomingMono, OutgoingMono>
) -> usize
pub fn register_request_response( &mut self, ns: impl AsRef<str>, op: impl AsRef<str>, handler: OperationHandler<IncomingMono, OutgoingMono> ) -> usize
Register a Request/Response style handler on the host.
sourcepub fn register_request_stream(
&mut self,
ns: impl AsRef<str>,
op: impl AsRef<str>,
handler: OperationHandler<IncomingMono, OutgoingStream>
) -> usize
pub fn register_request_stream( &mut self, ns: impl AsRef<str>, op: impl AsRef<str>, handler: OperationHandler<IncomingMono, OutgoingStream> ) -> usize
Register a Request/Response style handler on the host.
sourcepub fn register_request_channel(
&mut self,
ns: impl AsRef<str>,
op: impl AsRef<str>,
handler: OperationHandler<IncomingStream, OutgoingStream>
) -> usize
pub fn register_request_channel( &mut self, ns: impl AsRef<str>, op: impl AsRef<str>, handler: OperationHandler<IncomingStream, OutgoingStream> ) -> usize
Register a Request/Response style handler on the host.
sourcepub fn register_fire_and_forget(
&mut self,
ns: impl AsRef<str>,
op: impl AsRef<str>,
handler: OperationHandler<IncomingMono, ()>
) -> usize
pub fn register_fire_and_forget( &mut self, ns: impl AsRef<str>, op: impl AsRef<str>, handler: OperationHandler<IncomingMono, ()> ) -> usize
Register a Request/Response style handler on the host.
sourcepub fn get_request_response_handler(
&self,
index: u32
) -> Option<RtRc<OperationHandler<IncomingMono, OutgoingMono>>>
pub fn get_request_response_handler( &self, index: u32 ) -> Option<RtRc<OperationHandler<IncomingMono, OutgoingMono>>>
Get a Request/Response handler by id.
sourcepub fn get_request_stream_handler(
&self,
index: u32
) -> Option<RtRc<OperationHandler<IncomingMono, OutgoingStream>>>
pub fn get_request_stream_handler( &self, index: u32 ) -> Option<RtRc<OperationHandler<IncomingMono, OutgoingStream>>>
Get a Request/Response handler by id.
sourcepub fn get_request_channel_handler(
&self,
index: u32
) -> Option<RtRc<OperationHandler<IncomingStream, OutgoingStream>>>
pub fn get_request_channel_handler( &self, index: u32 ) -> Option<RtRc<OperationHandler<IncomingStream, OutgoingStream>>>
Get a Request/Response handler by id.
sourcepub fn get_fnf_handler(
&self,
index: u32
) -> Option<RtRc<OperationHandler<IncomingMono, ()>>>
pub fn get_fnf_handler( &self, index: u32 ) -> Option<RtRc<OperationHandler<IncomingMono, ()>>>
Get a Request/Response handler by id.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Handlers
impl Send for Handlers
impl Sync for Handlers
impl Unpin for Handlers
impl !UnwindSafe for Handlers
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