Struct bonsaidb_server::NoDispatcher
source · [−]pub struct NoDispatcher<B: Backend>(_);Expand description
Defines a no-op dispatcher for a backend with no custom api.
Trait Implementations
sourceimpl<B: Backend<CustomApi = ()>> CustomApiDispatcher<B> for NoDispatcher<B>
impl<B: Backend<CustomApi = ()>> CustomApiDispatcher<B> for NoDispatcher<B>
sourcefn new(_server: &CustomServer<B>, _client: &ConnectedClient<B>) -> Self
fn new(_server: &CustomServer<B>, _client: &ConnectedClient<B>) -> Self
Returns a dispatcher to handle custom api requests. The server and
client parameters are provided to allow the dispatcher to have access
to them when handling the individual actions. Read more
sourceimpl<B: Debug + Backend> Debug for NoDispatcher<B>
impl<B: Debug + Backend> Debug for NoDispatcher<B>
sourceimpl<B: Backend<CustomApi = ()>> Dispatcher<()> for NoDispatcher<B>
impl<B: Backend<CustomApi = ()>> Dispatcher<()> for NoDispatcher<B>
type Result = Result<(), BackendError>
type Result = Result<(), BackendError>
The type of the result.
sourcefn dispatch<'life0, 'life1, 'async_trait>(
&'life0 self,
_permissions: &'life1 Permissions,
_request: ()
) -> Pin<Box<dyn Future<Output = Self::Result> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn dispatch<'life0, 'life1, 'async_trait>(
&'life0 self,
_permissions: &'life1 Permissions,
_request: ()
) -> Pin<Box<dyn Future<Output = Self::Result> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Dispatches request to the appropriate handler while also ensuring
permissions allows the request. Read more
Auto Trait Implementations
impl<B> RefUnwindSafe for NoDispatcher<B> where
B: RefUnwindSafe,
impl<B> Send for NoDispatcher<B>
impl<B> Sync for NoDispatcher<B>
impl<B> Unpin for NoDispatcher<B> where
B: Unpin,
impl<B> UnwindSafe for NoDispatcher<B> where
B: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more