Struct dialectic_tokio_serde::Receiver [−][src]
A Receiver<F, D, R>
is capable of receiving any Deserialize
value using the serialization
format F
and the frame decoding D
, from the asynchronous reader R
.
Implementations
impl<F: Deserializer<D::Item>, D: Decoder, R: AsyncRead> Receiver<F, D, R>
[src]
pub fn new(deserializer: F, decoder: D, reader: R) -> Self
[src]
Construct a new Receiver
given a Deserializer
, Decoder
, and AsyncRead
er.
pub fn with_capacity(
deserializer: F,
decoder: D,
reader: R,
capacity: usize
) -> Self
[src]
deserializer: F,
decoder: D,
reader: R,
capacity: usize
) -> Self
Construct a new Receiver
given a Deserializer
, Decoder
, and AsyncRead
er,
with a given initial buffer capacity.
Trait Implementations
impl<F: Debug, D: Debug, R: Debug> Debug for Receiver<F, D, R>
[src]
impl<T, F, D, R> Receive<T> for Receiver<F, D, R> where
T: for<'a> Deserialize<'a>,
F: Deserializer<D::Item> + Unpin + Send,
D: Decoder + Send,
R: AsyncRead + Unpin + Send,
[src]
T: for<'a> Deserialize<'a>,
F: Deserializer<D::Item> + Unpin + Send,
D: Decoder + Send,
R: AsyncRead + Unpin + Send,
fn recv<'async_lifetime>(
&'async_lifetime mut self
) -> Pin<Box<dyn Future<Output = Result<T, Self::Error>> + Send + 'async_lifetime>>
[src]
&'async_lifetime mut self
) -> Pin<Box<dyn Future<Output = Result<T, Self::Error>> + Send + 'async_lifetime>>
impl<F, D, R> Receiver for Receiver<F, D, R> where
F: Deserializer<D::Item> + Unpin + Send,
D: Decoder + Send,
R: AsyncRead + Unpin + Send,
[src]
F: Deserializer<D::Item> + Unpin + Send,
D: Decoder + Send,
R: AsyncRead + Unpin + Send,
Auto Trait Implementations
impl<F, D, R> RefUnwindSafe for Receiver<F, D, R> where
D: RefUnwindSafe,
F: RefUnwindSafe,
R: RefUnwindSafe,
D: RefUnwindSafe,
F: RefUnwindSafe,
R: RefUnwindSafe,
impl<F, D, R> Send for Receiver<F, D, R> where
D: Send,
F: Send,
R: Send,
D: Send,
F: Send,
R: Send,
impl<F, D, R> Sync for Receiver<F, D, R> where
D: Sync,
F: Sync,
R: Sync,
D: Sync,
F: Sync,
R: Sync,
impl<F, D, R> Unpin for Receiver<F, D, R> where
F: Unpin,
R: Unpin,
F: Unpin,
R: Unpin,
impl<F, D, R> UnwindSafe for Receiver<F, D, R> where
D: UnwindSafe,
F: UnwindSafe,
R: UnwindSafe,
D: UnwindSafe,
F: UnwindSafe,
R: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<'a, T, S> As<'a, Val, T> for S where
S: Into<T>,
S: Into<T>,
pub fn as_convention(this: S) -> T
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<'a, T> By<'a, Mut> for T where
T: 'a + ?Sized,
T: 'a + ?Sized,
type Type = &'a mut T
The type of Self
when called by Convention
.
pub fn copy(this: <T as By<'a, Mut>>::Type) -> T where
T: Copy,
T: Copy,
pub fn clone(this: <T as By<'a, Mut>>::Type) -> T where
T: Clone,
T: Clone,
impl<'a, T> By<'a, Ref> for T where
T: 'a + ?Sized,
T: 'a + ?Sized,
type Type = &'a T
The type of Self
when called by Convention
.
pub fn copy(this: <T as By<'a, Ref>>::Type) -> T where
T: Copy,
T: Copy,
pub fn clone(this: <T as By<'a, Ref>>::Type) -> T where
T: Clone,
T: Clone,
impl<'a, T> By<'a, Val> for T
type Type = T
The type of Self
when called by Convention
.
pub fn copy(this: <T as By<'a, Val>>::Type) -> T where
T: Copy,
T: Copy,
pub fn clone(this: <T as By<'a, Val>>::Type) -> T where
T: Clone,
T: Clone,
impl<'a, T> Convert<'a, Mut, Mut> for T where
T: 'a,
T: 'a,
impl<'a, T> Convert<'a, Mut, Ref> for T where
T: 'a,
T: 'a,
impl<'a, T> Convert<'a, Ref, Ref> for T where
T: 'a,
T: 'a,
impl<'a, T> Convert<'a, Val, Val> for T
pub fn convert(from: T) -> T
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,