pub struct AsyncGraphQL { /* private fields */ }Expand description
AsyncGraphQL-compatible server implementation
Implementations§
Source§impl AsyncGraphQL
impl AsyncGraphQL
pub fn new(addr: SocketAddr) -> Self
pub fn bind(addr: impl Into<SocketAddr>) -> Self
Trait Implementations§
Source§impl Clone for AsyncGraphQL
impl Clone for AsyncGraphQL
Source§fn clone(&self) -> AsyncGraphQL
fn clone(&self) -> AsyncGraphQL
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for AsyncGraphQL
impl Default for AsyncGraphQL
Source§impl Server for AsyncGraphQL
impl Server for AsyncGraphQL
Source§fn run<'life0, 'async_trait, C, F>(
&'life0 self,
operations: Vec<Operation>,
collector: C,
on_ready: Option<F>,
) -> Pin<Box<dyn Future<Output = Result<C::Output, HarnessError>> + Send + 'async_trait>>where
C: Collector + 'static + 'async_trait,
F: FnOnce(SocketAddr) + Send + 'static + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
fn run<'life0, 'async_trait, C, F>(
&'life0 self,
operations: Vec<Operation>,
collector: C,
on_ready: Option<F>,
) -> Pin<Box<dyn Future<Output = Result<C::Output, HarnessError>> + Send + 'async_trait>>where
C: Collector + 'static + 'async_trait,
F: FnOnce(SocketAddr) + Send + 'static + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
Run the server with the given operations until all handlers are called
Auto Trait Implementations§
impl Freeze for AsyncGraphQL
impl RefUnwindSafe for AsyncGraphQL
impl Send for AsyncGraphQL
impl Sync for AsyncGraphQL
impl Unpin for AsyncGraphQL
impl UnwindSafe for AsyncGraphQL
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