pub enum OperatorFactoryError {
EmptySources,
ZeroDefault,
Register(RegisterError),
}Expand description
Errors returnable by crate::combine, crate::merge,
[crate::merge_as_op], crate::last_with_default, and
[crate::last_with_default_with].
Other operator factories (crate::map, crate::filter,
crate::with_latest_from, etc.) have no extra factory-shape
invariants beyond Core’s checks — they panic on Core-layer
RegisterError via .expect("invariant: caller has validated dep ids …") because their public contract is “the caller supplies
already-valid NodeIds.” Slice H # Errors rustdoc on those
factories documents the panic conditions.
Variants§
EmptySources
combine / merge / merge_as_op was called with empty
sources. At least one upstream is required — for fan-out
broadcast use a producer node with explicit subscriptions.
ZeroDefault
last_with_default / last_with_default_with was called with
NO_HANDLE as the default. Use crate::last for the
no-default variant, which emits Complete without a Data on
empty streams.
Register(RegisterError)
Underlying Core registration failed. Transparent-wrapped so
register_operator(...)? propagates correctly.
Trait Implementations§
Source§impl Clone for OperatorFactoryError
impl Clone for OperatorFactoryError
Source§fn clone(&self) -> OperatorFactoryError
fn clone(&self) -> OperatorFactoryError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for OperatorFactoryError
impl Debug for OperatorFactoryError
Source§impl Display for OperatorFactoryError
impl Display for OperatorFactoryError
Source§impl Error for OperatorFactoryError
impl Error for OperatorFactoryError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<RegisterError> for OperatorFactoryError
impl From<RegisterError> for OperatorFactoryError
Source§fn from(source: RegisterError) -> Self
fn from(source: RegisterError) -> Self
Source§impl PartialEq for OperatorFactoryError
impl PartialEq for OperatorFactoryError
Source§fn eq(&self, other: &OperatorFactoryError) -> bool
fn eq(&self, other: &OperatorFactoryError) -> bool
self and other values to be equal, and is used by ==.impl Eq for OperatorFactoryError
impl StructuralPartialEq for OperatorFactoryError
Auto Trait Implementations§
impl Freeze for OperatorFactoryError
impl RefUnwindSafe for OperatorFactoryError
impl Send for OperatorFactoryError
impl Sync for OperatorFactoryError
impl Unpin for OperatorFactoryError
impl UnsafeUnpin for OperatorFactoryError
impl UnwindSafe for OperatorFactoryError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.