Module reactive_mutiny::prelude
source · Expand description
Set of re-exported types & aliases to allow clients to use this lib.
See also advanced for advanced/flexible type aliases.
Re-exports
pub use crate::mutiny_stream::MutinyStream;pub use crate::uni::Uni;pub use crate::uni::UniBuilder;pub use crate::uni::unis_close_async;pub use crate::multi::Multi;pub use crate::multi::multis_close_async;pub use crate::types::*;
Modules
- Extra type aliases & internal types re-exports to allow advanced usage of the
reactive-mutinylibrary.
For simple usage, see crate::prelude.
Enums
- Honors the Zero-Cost Instrumentation Pattern for the [stream_executors]:
Designed to be used as a const generic parameter for Structs, causes the conditional instrumentation code in client structs to be selectively compiled – see the implemented const methods for documentation of each available instrument.
Type Definitions
- Default
Multifor those who wants to useArcas the wrapping type for payloads - Default
Multifor those who want the more performant OgreArc as the wrapping type for their payloads - Default
UniBuilderfor “moving” data around – good for small payloads (< 1k) whose types don’t require a customDropfunction - Default ‘UniBuilder’ for “zero-copying” data that will either be shared around or has a reasonably “big” payload (> 1k)