pub struct QuinnConnector<In: RpcMessage, Out: RpcMessage> { /* private fields */ }
Expand description
A connection using a quinn connection
Implementations§
Source§impl<In: RpcMessage, Out: RpcMessage> QuinnConnector<In, Out>
impl<In: RpcMessage, Out: RpcMessage> QuinnConnector<In, Out>
Sourcepub fn from_connection(connection: Connection) -> Self
pub fn from_connection(connection: Connection) -> Self
Create a new channel
Sourcepub fn new(endpoint: Endpoint, addr: SocketAddr, name: String) -> Self
pub fn new(endpoint: Endpoint, addr: SocketAddr, name: String) -> Self
Create a new channel
Trait Implementations§
Source§impl<In: RpcMessage, Out: RpcMessage> BoxableConnector<In, Out> for QuinnConnector<In, Out>
impl<In: RpcMessage, Out: RpcMessage> BoxableConnector<In, Out> for QuinnConnector<In, Out>
Source§fn clone_box(&self) -> Box<dyn BoxableConnector<In, Out>>
fn clone_box(&self) -> Box<dyn BoxableConnector<In, Out>>
Clone the connection and box it
Source§fn open_boxed(&self) -> OpenFuture<'_, In, Out> ⓘ
fn open_boxed(&self) -> OpenFuture<'_, In, Out> ⓘ
Open a channel to the remote che
Source§impl<In: RpcMessage, Out: RpcMessage> Clone for QuinnConnector<In, Out>
impl<In: RpcMessage, Out: RpcMessage> Clone for QuinnConnector<In, Out>
Source§impl<In: RpcMessage, Out: RpcMessage> ConnectionErrors for QuinnConnector<In, Out>
impl<In: RpcMessage, Out: RpcMessage> ConnectionErrors for QuinnConnector<In, Out>
Source§impl<In: RpcMessage, Out: RpcMessage> Connector for QuinnConnector<In, Out>
impl<In: RpcMessage, Out: RpcMessage> Connector for QuinnConnector<In, Out>
Source§async fn open(
&self,
) -> Result<(Self::SendSink, Self::RecvStream), Self::OpenError>
async fn open( &self, ) -> Result<(Self::SendSink, Self::RecvStream), Self::OpenError>
Open a channel to the remote che
Source§fn map<In1, Out1>(self) -> MappedConnector<In1, Out1, Self>
fn map<In1, Out1>(self) -> MappedConnector<In1, Out1, Self>
Map the input and output types of this connection
Source§impl<In: RpcMessage, Out: RpcMessage> Debug for QuinnConnector<In, Out>
impl<In: RpcMessage, Out: RpcMessage> Debug for QuinnConnector<In, Out>
Source§impl<In: RpcMessage, Out: RpcMessage> StreamTypes for QuinnConnector<In, Out>
impl<In: RpcMessage, Out: RpcMessage> StreamTypes for QuinnConnector<In, Out>
Source§type RecvStream = RecvStream<In>
type RecvStream = RecvStream<In>
Receive side of a bidirectional typed channel
Auto Trait Implementations§
impl<In, Out> Freeze for QuinnConnector<In, Out>
impl<In, Out> !RefUnwindSafe for QuinnConnector<In, Out>
impl<In, Out> Send for QuinnConnector<In, Out>
impl<In, Out> Sync for QuinnConnector<In, Out>
impl<In, Out> Unpin for QuinnConnector<In, Out>
impl<In, Out> !UnwindSafe for QuinnConnector<In, Out>
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)