pub struct ModuleBuilder<Cx: TripleS + Clone> { /* private fields */ }
Expand description
A builder for a Module
.
Implementations§
Source§impl<Cx: TripleS + Clone> ModuleBuilder<Cx>
impl<Cx: TripleS + Clone> ModuleBuilder<Cx>
Sourcepub fn create<Proc: GenericProcedure<Cx> + TripleS>(self, proc: Proc) -> Self
pub fn create<Proc: GenericProcedure<Cx> + TripleS>(self, proc: Proc) -> Self
Attach a handler for [rpc_rs::Method::Create
].
Sourcepub fn read<Proc: GenericProcedure<Cx> + TripleS>(self, proc: Proc) -> Self
pub fn read<Proc: GenericProcedure<Cx> + TripleS>(self, proc: Proc) -> Self
Attach a handler for [rpc_rs::Method::Read
].
Sourcepub fn update<Proc: GenericProcedure<Cx> + TripleS>(self, proc: Proc) -> Self
pub fn update<Proc: GenericProcedure<Cx> + TripleS>(self, proc: Proc) -> Self
Attach a handler for [rpc_rs::Method::Update
].
Sourcepub fn delete<Proc: GenericProcedure<Cx> + TripleS>(self, proc: Proc) -> Self
pub fn delete<Proc: GenericProcedure<Cx> + TripleS>(self, proc: Proc) -> Self
Attach a handler for [rpc_rs::Method::Delete
].
Sourcepub fn build(self) -> Module<Cx>
pub fn build(self) -> Module<Cx>
Build this ModuleBuilder
, converting it into a Module
.
Trait Implementations§
Auto Trait Implementations§
impl<Cx> Freeze for ModuleBuilder<Cx>
impl<Cx> !RefUnwindSafe for ModuleBuilder<Cx>
impl<Cx> Send for ModuleBuilder<Cx>
impl<Cx> Sync for ModuleBuilder<Cx>
impl<Cx> Unpin for ModuleBuilder<Cx>
impl<Cx> !UnwindSafe for ModuleBuilder<Cx>
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