pub struct ChangeMpscMsg<TInput, TOutput> {
pub input: Receiver<TInput>,
pub output: Sender<TOutput>,
pub fn_change: fn(_: TInput) -> TOutput,
}
Expand description
Замена сообщения
Fields§
§input: Receiver<TInput>
Входящий поток сообщений
output: Sender<TOutput>
Исходящий поток сообщений
fn_change: fn(_: TInput) -> TOutput
Функция изменения сообщения
Implementations§
Auto Trait Implementations§
impl<TInput, TOutput> Freeze for ChangeMpscMsg<TInput, TOutput>
impl<TInput, TOutput> RefUnwindSafe for ChangeMpscMsg<TInput, TOutput>
impl<TInput, TOutput> Send for ChangeMpscMsg<TInput, TOutput>
impl<TInput, TOutput> Sync for ChangeMpscMsg<TInput, TOutput>
impl<TInput, TOutput> Unpin for ChangeMpscMsg<TInput, TOutput>
impl<TInput, TOutput> UnwindSafe for ChangeMpscMsg<TInput, TOutput>
Blanket Implementations§
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