Skip to main content

announce_std/
task.rs

1//! announce mocks of `task` traits. Generated from newer-type-std's copies.
2
3#[allow(unused_imports)]
4use announce::announce;
5
6/// announce mock of [`::std::task::Wake`]: invoke `Wake!` to receive its definition.
7///
8/// The real trait is re-exported under the same path.
9#[announce(mock = ::std::task::Wake)]
10pub trait Wake {
11    fn wake(self: ::std::sync::Arc<Self>);
12    fn wake_by_ref(self: &::std::sync::Arc<Self>) {
13        ::core::unimplemented!()
14    }
15}
16
17#[doc(no_inline)]
18pub use ::std::task::Wake;