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 client(&self) -> &MemClient
Available on crate feature rpc
only.
pub fn client(&self) -> &MemClient
rpc
only.Get an in memory client to interact with the docs engine.
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>>
Available on crate feature rpc
only.
pub async fn handle_rpc_request<C: ChannelTypes<RpcService>>( self, msg: Request, chan: RpcChannel<RpcService, C>, ) -> Result<(), RpcServerError<C>>
rpc
only.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