Struct dialectic_tokio_serde::Sender [−][src]
A Sender<F, E, W>
is capable of sending any Serialize
value using the serialization format
F
and the frame encoding E
to the asynchronous writer W
.
Implementations
impl<F: Serializer, E: Encoder<F::Output>, W: AsyncWrite> Sender<F, E, W>
[src]
pub fn new(serializer: F, encoder: E, writer: W) -> Self
[src]
Construct a new Sender
given a Serializer
, Encoder
, and AsyncWrite
r.
Trait Implementations
impl<F: Debug, E: Debug, W: Debug> Debug for Sender<F, E, W>
[src]
impl<T, F, E, W> Transmit<T, Mut> for Sender<F, E, W> where
T: Serialize + Sync,
F: Serializer + Unpin + Send,
F::Output: Send,
F::Error: Send,
E: Encoder<F::Output> + Send,
W: AsyncWrite + Unpin + Send,
[src]
T: Serialize + Sync,
F: Serializer + Unpin + Send,
F::Output: Send,
F::Error: Send,
E: Encoder<F::Output> + Send,
W: AsyncWrite + Unpin + Send,
fn send<'a, 'async_lifetime>(
&'async_lifetime mut self,
message: <T as By<'a, Mut>>::Type
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_lifetime>> where
'a: 'async_lifetime,
[src]
&'async_lifetime mut self,
message: <T as By<'a, Mut>>::Type
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_lifetime>> where
'a: 'async_lifetime,
impl<T, F, E, W> Transmit<T, Ref> for Sender<F, E, W> where
T: Serialize + Sync,
F: Serializer + Unpin + Send,
F::Output: Send,
F::Error: Send,
E: Encoder<F::Output> + Send,
W: AsyncWrite + Unpin + Send,
[src]
T: Serialize + Sync,
F: Serializer + Unpin + Send,
F::Output: Send,
F::Error: Send,
E: Encoder<F::Output> + Send,
W: AsyncWrite + Unpin + Send,
fn send<'a, 'async_lifetime>(
&'async_lifetime mut self,
message: <T as By<'a, Ref>>::Type
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_lifetime>> where
'a: 'async_lifetime,
[src]
&'async_lifetime mut self,
message: <T as By<'a, Ref>>::Type
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_lifetime>> where
'a: 'async_lifetime,
impl<T, F, E, W> Transmit<T, Val> for Sender<F, E, W> where
T: Serialize + Send + 'static,
F: Serializer + Unpin + Send,
F::Output: Send,
F::Error: Send,
E: Encoder<F::Output> + Send,
W: AsyncWrite + Unpin + Send,
[src]
T: Serialize + Send + 'static,
F: Serializer + Unpin + Send,
F::Output: Send,
F::Error: Send,
E: Encoder<F::Output> + Send,
W: AsyncWrite + Unpin + Send,
fn send<'a, 'async_lifetime>(
&'async_lifetime mut self,
message: <T as By<'a, Val>>::Type
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_lifetime>> where
'a: 'async_lifetime,
[src]
&'async_lifetime mut self,
message: <T as By<'a, Val>>::Type
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_lifetime>> where
'a: 'async_lifetime,
impl<F, E, W> Transmitter for Sender<F, E, W> where
F: Serializer + Unpin + Send,
F::Output: Send,
F::Error: Send,
E: Encoder<F::Output> + Send,
W: AsyncWrite + Unpin + Send,
[src]
F: Serializer + Unpin + Send,
F::Output: Send,
F::Error: Send,
E: Encoder<F::Output> + Send,
W: AsyncWrite + Unpin + Send,
Auto Trait Implementations
impl<F, E, W> RefUnwindSafe for Sender<F, E, W> where
E: RefUnwindSafe,
F: RefUnwindSafe,
W: RefUnwindSafe,
E: RefUnwindSafe,
F: RefUnwindSafe,
W: RefUnwindSafe,
impl<F, E, W> Send for Sender<F, E, W> where
E: Send,
F: Send,
W: Send,
E: Send,
F: Send,
W: Send,
impl<F, E, W> Sync for Sender<F, E, W> where
E: Sync,
F: Sync,
W: Sync,
E: Sync,
F: Sync,
W: Sync,
impl<F, E, W> Unpin for Sender<F, E, W> where
F: Unpin,
W: Unpin,
F: Unpin,
W: Unpin,
impl<F, E, W> UnwindSafe for Sender<F, E, W> where
E: UnwindSafe,
F: UnwindSafe,
W: UnwindSafe,
E: UnwindSafe,
F: UnwindSafe,
W: 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>,