ProstClientConnectionBindings

Struct ProstClientConnectionBindings 

Source
pub struct ProstClientConnectionBindings<Request, Response, Reactor, TStream> { /* private fields */ }
Expand description

A convenience type for binding a ProstSerializer to a client-side protosocket::Connection.

Trait Implementations§

Source§

impl<Request, Response, Reactor, TStream> ConnectionBindings for ProstClientConnectionBindings<Request, Response, Reactor, TStream>
where Request: Message + Default + Unpin + 'static, Response: Message + Default + Unpin + 'static, Reactor: MessageReactor<Inbound = Response>, TStream: AsyncRead + AsyncWrite + Send + Unpin + 'static,

Source§

type Deserializer = ProstSerializer<Response, Request>

The deserializer for this connection.
Source§

type Serializer = ProstSerializer<Response, Request>

The serializer for this connection.
Source§

type Reactor = Reactor

The message reactor for this connection.
Source§

type Stream = TStream

Bidirectional Stream type to use for this connection. Like tokio::net::TcpStream.

Auto Trait Implementations§

§

impl<Request, Response, Reactor, TStream> Freeze for ProstClientConnectionBindings<Request, Response, Reactor, TStream>

§

impl<Request, Response, Reactor, TStream> RefUnwindSafe for ProstClientConnectionBindings<Request, Response, Reactor, TStream>
where Request: RefUnwindSafe, Response: RefUnwindSafe, Reactor: RefUnwindSafe, TStream: RefUnwindSafe,

§

impl<Request, Response, Reactor, TStream> Send for ProstClientConnectionBindings<Request, Response, Reactor, TStream>
where Request: Send, Response: Send, Reactor: Send, TStream: Send,

§

impl<Request, Response, Reactor, TStream> Sync for ProstClientConnectionBindings<Request, Response, Reactor, TStream>
where Request: Sync, Response: Sync, Reactor: Sync, TStream: Sync,

§

impl<Request, Response, Reactor, TStream> Unpin for ProstClientConnectionBindings<Request, Response, Reactor, TStream>
where Request: Unpin, Response: Unpin, Reactor: Unpin, TStream: Unpin,

§

impl<Request, Response, Reactor, TStream> UnwindSafe for ProstClientConnectionBindings<Request, Response, Reactor, TStream>
where Request: UnwindSafe, Response: UnwindSafe, Reactor: UnwindSafe, TStream: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.