Struct scylla_proxy::Action
source · pub struct Action<TFrom, TTo> {
pub delay: Option<Duration>,
pub msg_processor: Option<Arc<dyn Fn(TFrom) -> TTo + Send + Sync>>,
}
Expand description
Describes what to with the given <something> (frame), how to transform it and after what delay.
Fields§
§delay: Option<Duration>
§msg_processor: Option<Arc<dyn Fn(TFrom) -> TTo + Send + Sync>>
Trait Implementations§
Auto Trait Implementations§
impl<TFrom, TTo> Freeze for Action<TFrom, TTo>
impl<TFrom, TTo> !RefUnwindSafe for Action<TFrom, TTo>
impl<TFrom, TTo> Send for Action<TFrom, TTo>
impl<TFrom, TTo> Sync for Action<TFrom, TTo>
impl<TFrom, TTo> Unpin for Action<TFrom, TTo>
impl<TFrom, TTo> !UnwindSafe for Action<TFrom, TTo>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)