Struct qubit::RpcBuilder
source · pub struct RpcBuilder<Ctx> { /* private fields */ }
Implementations§
source§impl<Ctx> RpcBuilder<Ctx>
impl<Ctx> RpcBuilder<Ctx>
pub fn new(ctx: Ctx) -> Self
pub fn namespaced(ctx: Ctx, namespace: &'static str) -> Self
pub fn with_namespace(ctx: Ctx, namespace: Option<&'static str>) -> Self
pub fn consume(self) -> RpcModule<Ctx>
pub fn query<C, F, Fut>(self, name: &'static str, handler: F) -> Self
pub fn subscription<C, F, Fut, S>( self, name: &'static str, notification_name: &'static str, unsubscribe_name: &'static str, handler: F ) -> Self
Auto Trait Implementations§
impl<Ctx> Freeze for RpcBuilder<Ctx>
impl<Ctx> !RefUnwindSafe for RpcBuilder<Ctx>
impl<Ctx> Send for RpcBuilder<Ctx>
impl<Ctx> Sync for RpcBuilder<Ctx>
impl<Ctx> Unpin for RpcBuilder<Ctx>
impl<Ctx> !UnwindSafe for RpcBuilder<Ctx>
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