pub struct Docs<S> { /* private fields */ }
Available on crate feature
engine
only.Expand description
Docs protocol.
Implementations§
source§impl<S: Store> Docs<S>
impl<S: Store> Docs<S>
sourcepub fn new(engine: Engine<S>) -> Self
pub fn new(engine: Engine<S>) -> Self
Create a new docs protocol with the given engine.
Note that usually you would use the Builder
to create a new docs protocol.
sourcepub async fn handle_rpc_request<C: ChannelTypes<RpcService>>(
self,
msg: Request,
chan: RpcChannel<RpcService, C>
) -> Result<(), RpcServerError<C>>
pub async fn handle_rpc_request<C: ChannelTypes<RpcService>>( self, msg: Request, chan: RpcChannel<RpcService, C> ) -> Result<(), RpcServerError<C>>
Handle a docs request from the RPC server.
sourcepub fn protect_cb(&self) -> ProtectCb
pub fn protect_cb(&self) -> ProtectCb
Get the protect callback for the docs engine.
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for Docs<S>
impl<S> !RefUnwindSafe for Docs<S>
impl<S> Send for Docs<S>
impl<S> Sync for Docs<S>
impl<S> Unpin for Docs<S>
impl<S> !UnwindSafe for Docs<S>
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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