Skip to content

Commit

Permalink
value -> as_raw_value
Browse files Browse the repository at this point in the history
  • Loading branch information
andybarron committed Feb 25, 2022
1 parent f09cce7 commit 42f2d94
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tokio/src/signal/unix.rs
Expand Up @@ -89,9 +89,9 @@ impl SignalKind {
/// ```rust,no_run
/// # use tokio::signal::unix::SignalKind;
/// let kind = SignalKind::interrupt();
/// assert_eq!(kind.value(), libc::SIGINT);
/// assert_eq!(kind.as_raw_value(), libc::SIGINT);
/// ```
pub fn value(&self) -> std::os::raw::c_int {
pub fn as_raw_value(&self) -> std::os::raw::c_int {
self.0
}

Expand Down Expand Up @@ -209,7 +209,7 @@ impl From<std::os::raw::c_int> for SignalKind {

impl From<SignalKind> for std::os::raw::c_int {
fn from(kind: SignalKind) -> Self {
kind.value()
kind.as_raw_value()
}
}

Expand Down

0 comments on commit 42f2d94

Please sign in to comment.