Struct glimesh::ws::Connection [−][src]
Connect to glimesh over websockets
Implementations
impl Connection
[src]
pub fn builder() -> ConnectionBuilder
[src]
Create a ConnectionBuilder
to configure various options.
pub async fn connect(auth: Auth) -> Result<Self, WebsocketConnectionError>
[src]
Create a connection with the default options.
pub fn as_client(&self) -> Client<&Self, WebsocketConnectionError>
[src]
Create a client with reference to this connection
pub fn to_client(&self) -> WebsocketClient
[src]
Create a client with a clone of this connection
pub fn into_client(self) -> WebsocketClient
[src]
Convert this connection into a client
pub fn close(self)
[src]
Terminate the socket connection
Trait Implementations
impl Clone for Connection
[src]
fn clone(&self) -> Connection
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for Connection
[src]
impl MutationConn for Connection
[src]
type Error = WebsocketConnectionError
Error type representing any errors that can occurr when mutating
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 QueryConn for Connection
[src]
type Error = WebsocketConnectionError
Error type representing any errors that can occurr when querying
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,
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 SubscriptionConn for Connection
[src]
type Error = WebsocketConnectionError
Error type representing any errors that can occurr when subscribing
fn subscribe<'a, 'life0, 'async_trait, Q>(
&'life0 self,
variables: Q::Variables
) -> Pin<Box<dyn Future<Output = Result<BoxStream<'a, Q::ResponseData>, Self::Error>> + Send + 'async_trait>> where
Q: GraphQLQuery,
Q::Variables: Send + Sync,
'a: 'async_trait,
Q: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
variables: Q::Variables
) -> Pin<Box<dyn Future<Output = Result<BoxStream<'a, Q::ResponseData>, Self::Error>> + Send + 'async_trait>> where
Q: GraphQLQuery,
Q::Variables: Send + Sync,
'a: 'async_trait,
Q: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
Auto Trait Implementations
impl !RefUnwindSafe for Connection
impl Send for Connection
impl Sync for Connection
impl Unpin for Connection
impl !UnwindSafe for Connection
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,