Trait glimesh::MutationConn [−][src]
pub trait MutationConn { type Error; #[must_use] 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,
Q::Variables: Send + Sync,
Q: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait; }
Connections that implement this support graphql mutations.
Associated Types
Loading content...Required methods
#[must_use]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,
Q::Variables: Send + Sync,
Q: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
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,
Q::Variables: Send + Sync,
Q: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
Send a graphql mutation over this connection.
Errors
This function may error if there was a problem with the underlying connection such as a dns resolution error, or the websocket is disconnected, or if the api returned an error or the api response failed to decode.
Implementors
impl MutationConn for glimesh::http::Connection
[src]
type Error = HttpConnectionError
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,
Q::Variables: Send + Sync,
Q: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
variables: Q::Variables
) -> Pin<Box<dyn Future<Output = Result<Q::ResponseData, Self::Error>> + Send + 'async_trait>> where
Q: GraphQLQuery,
Q::Variables: Send + Sync,
Q: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
impl MutationConn for glimesh::ws::Connection
[src]
type Error = WebsocketConnectionError
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,
Q::Variables: Send + Sync,
Q: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
variables: Q::Variables
) -> Pin<Box<dyn Future<Output = Result<Q::ResponseData, Self::Error>> + Send + 'async_trait>> where
Q: GraphQLQuery,
Q::Variables: Send + Sync,
Q: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,