1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
//! A no-operation unsubscribe implementation.
//!
//! This module provides a no-op implementation of the unsubscribe trait,
//! useful for scenarios where unsubscribe operations are not needed or
//! should be skipped without performing any actual work.
use async_trait;
use crateUnSubError;
use crateUnSubTrait;
/// A no-operation unsubscribe handler.
///
/// `UnSubNoop` is a simple implementation of [`UnSubTrait`]
/// that performs no operations when unsubscribe is called.
///
/// Depending on how it is configured, `unsubscribe` will either:
/// - Return `Ok(())` without taking any action when `should_err` is `false`
/// - Return `Err(UnSubError::NoHandler)` when `should_err` is `true`
///
/// This is useful for:
/// - Default implementations where unsubscribe is not required
/// - Testing and mocking scenarios
/// - Cases where subscription cleanup is not necessary