pub trait Operator<'o>: ObserverInput + ObservableOutput {
type OutObservable<InObservable: 'o + Observable<Out = Self::In, OutError = Self::InError> + Send + Sync>: 'o + Observable<Out = Self::Out, OutError = Self::OutError>;
// Required method
fn operate<InObservable>(
self,
source: InObservable,
) -> Self::OutObservable<InObservable>
where InObservable: 'o + Observable<Out = Self::In, OutError = Self::InError> + Send + Sync;
}Expand description
§Operator
Operators transform Observables, giving them new behavior.
§Composable Operators
Operators who just want to wrap the destination in a subscriber can also implement ComposableOperator instead. Which allows the operator to be composable in addition.
Required Associated Types§
type OutObservable<InObservable: 'o + Observable<Out = Self::In, OutError = Self::InError> + Send + Sync>: 'o + Observable<Out = Self::Out, OutError = Self::OutError>
Required Methods§
fn operate<InObservable>( self, source: InObservable, ) -> Self::OutObservable<InObservable>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.