schmoozer

Check-in Differences
Login

Check-in Differences

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Difference From schmoozer-0.4.0 To schmoozer-0.4.1

2024-10-18
12:03
Release maintenance. Leaf check-in: 7ff7f33b87 user: jan tags: schmoozer-0.4.1, trunk
12:00
Add Connector::display_target() trait method. check-in: a14a7e6a1b user: jan tags: trunk
2024-10-03
16:35
Release maintenance. check-in: b503fe0d7f user: jan tags: schmoozer-0.4.0, trunk
16:32
Rephrase. check-in: 0a6c85b133 user: jan tags: trunk

Changes to Cargo.toml.

1
2
3

4
5
6
7
8
9
10
1
2

3
4
5
6
7
8
9
10


-
+







[package]
name = "schmoozer"
version = "0.4.0"
version = "0.4.1"
edition = "2021"
license = "0BSD"
# https://crates.io/category_slugs
categories = [ "network-programming" ]
keywords = [ "connector", "network", "tokio" ]
repository = "https://repos.qrnch.tech/pub/schmoozer"
description = "A simple abstraction over a retryable async operation, such as establishing a connection"

Changes to src/lib.rs.

109
110
111
112
113
114
115











116
117
118
119
120
121
122
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133







+
+
+
+
+
+
+
+
+
+
+







  /// to terminate and return the result passed along with `RunResult::Exit`.
  ///
  /// # Errors
  /// If a fatal error occurs that is not retryable the implementation returns
  /// [`RunResult::Exit`] with an `Err(E)`, which will be returned by the
  /// connector loop function.
  async fn run(&mut self, conn: Self::ConnType) -> RunResult<Self::Error>;

  /// Optionally return a `String` representation of the connector's target
  /// address.
  ///
  /// The returned `String` is intended for display/logging, and is not meant
  /// to be reversible.
  ///
  /// The default implementation returns `None`.
  fn display_target(&self) -> Option<String> {
    None
  }
}


/// Special-purpose result returned by [`Connector::connect()`].
pub enum ConnResult<C, E> {
  /// The connection was successful.
  ///

Changes to www/changelog.md.

1
2
3
4
5
6
7

8
9
10
11
12
13
14












15
16
17
18
19
20
21
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






-
+







+
+
+
+
+
+
+
+
+
+
+
+







# Change Log

⚠️  indicates a breaking change.

## [Unreleased]

[Details](/vdiff?from=schmoozer-0.4.0&to=trunk)
[Details](/vdiff?from=schmoozer-0.4.1&to=trunk)

### Added

### Changed

### Removed

---

## [0.4.1] - 2024-10-18

[Details](/vdiff?from=schmoozer-0.4.0&to=schmoozer-0.4.1)

### Added

- New trait method `Connector::display_target()` can be used to return a
  `String` representation of the Connector's target address.  The default
  implementation returns `None`.

---

## [0.4.0] - 2024-10-03

[Details](/vdiff?from=schmoozer-0.3.0&to=schmoozer-0.4.0)

### Added