Struct torn_api::DirectExecutor 
source · [−]pub struct DirectExecutor<C> { /* private fields */ }Trait Implementations
sourceimpl<C> RequestExecutor<C> for DirectExecutor<C>where
    C: ApiClient,
 
impl<C> RequestExecutor<C> for DirectExecutor<C>where
    C: ApiClient,
type Error = ApiClientError<<C as ApiClient>::Error>
fn execute<'life0, 'life1, 'async_trait, A>(
    &'life0 self,
    client: &'life1 C,
    request: ApiRequest<A>
) -> Pin<Box<dyn Future<Output = Result<A, Self::Error>> + 'async_trait>>where
    A: ApiCategoryResponse,
    A: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait,
sourceimpl<C> ThreadSafeRequestExecutor<C> for DirectExecutor<C>where
    C: ThreadSafeApiClient,
 
impl<C> ThreadSafeRequestExecutor<C> for DirectExecutor<C>where
    C: ThreadSafeApiClient,
type Error = ApiClientError<<C as ThreadSafeApiClient>::Error>
fn execute<'life0, 'life1, 'async_trait, A>(
    &'life0 self,
    client: &'life1 C,
    request: ApiRequest<A>
) -> Pin<Box<dyn Future<Output = Result<A, Self::Error>> + Send + 'async_trait>>where
    A: ApiCategoryResponse,
    A: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait,
Auto Trait Implementations
impl<C> RefUnwindSafe for DirectExecutor<C>where
    C: RefUnwindSafe,
impl<C> Send for DirectExecutor<C>where
    C: Send,
impl<C> Sync for DirectExecutor<C>where
    C: Sync,
impl<C> Unpin for DirectExecutor<C>where
    C: Unpin,
impl<C> UnwindSafe for DirectExecutor<C>where
    C: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
 
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>
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