Struct glimesh::http::Connection
source · pub struct Connection { /* private fields */ }
Expand description
Connect to glimesh over http(s).
Implementations§
source§impl Connection
impl Connection
sourcepub fn builder() -> ConnectionBuilder
pub fn builder() -> ConnectionBuilder
Create a ConnectionBuilder
to configure various options.
sourcepub fn to_client(&self) -> HttpClient
pub fn to_client(&self) -> HttpClient
Create a client with a clone of this connection
sourcepub fn into_client(self) -> HttpClient
pub fn into_client(self) -> HttpClient
Convert this connection into a client
sourcepub fn clone_with_auth(&self, auth: Auth) -> Self
pub fn clone_with_auth(&self, auth: Auth) -> Self
Create a copy of this connection with a difference auth method.
Trait Implementations§
source§impl Clone for Connection
impl Clone for Connection
source§fn clone(&self) -> Connection
fn clone(&self) -> Connection
Returns a copy 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 Debug for Connection
impl Debug for Connection
source§impl MutationConn for Connection
impl MutationConn for Connection
§type Error = HttpConnectionError
type Error = HttpConnectionError
Error type representing any errors that can occurr when mutating
source§fn mutate<'life0, 'async_trait, Q>(
&'life0 self,
variables: Q::Variables
) -> Pin<Box<dyn Future<Output = Result<Q::ResponseData, Self::Error>> + Send + 'async_trait>>where
Q: GraphQLQuery + 'async_trait,
Q::Variables: Send + Sync,
Self: 'async_trait,
'life0: 'async_trait,
fn mutate<'life0, 'async_trait, Q>( &'life0 self, variables: Q::Variables ) -> Pin<Box<dyn Future<Output = Result<Q::ResponseData, Self::Error>> + Send + 'async_trait>>where Q: GraphQLQuery + 'async_trait, Q::Variables: Send + Sync, Self: 'async_trait, 'life0: 'async_trait,
Send a graphql mutation over this connection. Read more
source§impl QueryConn for Connection
impl QueryConn for Connection
§type Error = HttpConnectionError
type Error = HttpConnectionError
Error type representing any errors that can occurr when querying
source§fn query<'life0, 'async_trait, Q>(
&'life0 self,
variables: Q::Variables
) -> Pin<Box<dyn Future<Output = Result<Q::ResponseData, Self::Error>> + Send + 'async_trait>>where
Q: GraphQLQuery + 'async_trait,
Q::Variables: Send + Sync,
Self: 'async_trait,
'life0: 'async_trait,
fn query<'life0, 'async_trait, Q>( &'life0 self, variables: Q::Variables ) -> Pin<Box<dyn Future<Output = Result<Q::ResponseData, Self::Error>> + Send + 'async_trait>>where Q: GraphQLQuery + 'async_trait, Q::Variables: Send + Sync, Self: 'async_trait, 'life0: 'async_trait,
Send a graphql query over this connection. Read more