ProstServerConnectionBindings

Struct ProstServerConnectionBindings 

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

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

Trait Implementations§

Source§

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

Source§

type Deserializer = ProstSerializer<Request, Response>

The deserializer for this connection.
Source§

type Serializer = ProstSerializer<Request, Response>

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, Stream> Freeze for ProstServerConnectionBindings<Request, Response, Reactor, Stream>

§

impl<Request, Response, Reactor, Stream> RefUnwindSafe for ProstServerConnectionBindings<Request, Response, Reactor, Stream>
where Request: RefUnwindSafe, Response: RefUnwindSafe, Reactor: RefUnwindSafe, Stream: RefUnwindSafe,

§

impl<Request, Response, Reactor, Stream> Send for ProstServerConnectionBindings<Request, Response, Reactor, Stream>
where Request: Send, Response: Send, Reactor: Send, Stream: Send,

§

impl<Request, Response, Reactor, Stream> Sync for ProstServerConnectionBindings<Request, Response, Reactor, Stream>
where Request: Sync, Response: Sync, Reactor: Sync, Stream: Sync,

§

impl<Request, Response, Reactor, Stream> Unpin for ProstServerConnectionBindings<Request, Response, Reactor, Stream>
where Request: Unpin, Response: Unpin, Reactor: Unpin, Stream: Unpin,

§

impl<Request, Response, Reactor, Stream> UnwindSafe for ProstServerConnectionBindings<Request, Response, Reactor, Stream>
where Request: UnwindSafe, Response: UnwindSafe, Reactor: UnwindSafe, Stream: 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.