Skip to content

Commit

Permalink
Export rch::watch::ChangedError
Browse files Browse the repository at this point in the history
  • Loading branch information
surban committed Jan 24, 2022
1 parent d32069f commit 548711f
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to Remoc will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 0.9.12 - 2022-01-24
### Fixed
- export rch::watch::ChangedError

## 0.9.11 - 2022-01-17
### Added
- conversions between remote channel receive errors
Expand Down
4 changes: 2 additions & 2 deletions remoc/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "remoc"
version = "0.9.11"
version = "0.9.12"
authors = ["Sebastian Urban <surban@surban.net>", "ENQT GmbH <su@enqt.de>", "Remoc contributors"]
readme = "README.md"
repository = "https://github.com/ENQT-GmbH/remoc/"
Expand Down Expand Up @@ -36,7 +36,7 @@ default-codec-message-pack = ["codec-message-pack", "default-codec-set"]
full-codecs = ["codec-bincode", "codec-cbor", "codec-ciborium", "codec-json", "codec-message-pack"]

[dependencies]
remoc_macro = { version = "=0.9.11", path = "../remoc_macro", optional = true }
remoc_macro = { version = "=0.9.12", path = "../remoc_macro", optional = true }

futures = "0.3"
tokio = { version = "1.13", features = ["macros", "rt", "sync", "time"] }
Expand Down
2 changes: 1 addition & 1 deletion remoc/src/rch/watch/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ use crate::RemoteSend;
mod receiver;
mod sender;

pub use receiver::{Receiver, ReceiverStream, RecvError};
pub use receiver::{ChangedError, Receiver, ReceiverStream, RecvError};
pub use sender::{SendError, Sender};

/// Length of queuing for storing errors that occurred during remote send.
Expand Down
3 changes: 2 additions & 1 deletion remoc/src/rch/watch/receiver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,9 @@ pub enum ChangedError {

impl ChangedError {
/// True, if remote endpoint has closed channel.
#[deprecated = "a remoc::rch::watch::ChangedError is always due to closure"]
pub fn is_closed(&self) -> bool {
matches!(self, Self::Closed)
true
}
}

Expand Down
2 changes: 1 addition & 1 deletion remoc_macro/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "remoc_macro"
version = "0.9.11"
version = "0.9.12"
authors = ["Sebastian Urban <surban@surban.net>", "ENQT GmbH <su@enqt.de>", "Remoc contributors"]
readme = "README.md"
repository = "https://github.com/ENQT-GmbH/remoc/"
Expand Down

0 comments on commit 548711f

Please sign in to comment.