devela/work/thread/
reexports.rs

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
54
55
56
57
58
// devela::work::thread::reexports
//
//! Reexported items.
//
// Note that std's standalone functions are namespaced in `ExtThread`.

use crate::reexport;

/* types */

reexport! { rust: std::thread,
    doc: "An error returned by [`ThreadLocalKey::try_with`].",
    @AccessError as ThreadAccessError
}
reexport! { rust: std::thread,
    doc: "Thread factory, which can be used in order to configure the properties
        of a new thread.",
    @Builder as ThreadBuilder
}
reexport! { rust: std::thread,
    doc: "An owned permission to join on a thread (block on its termination).",
    @JoinHandle as ThreadJoinHandle
}
reexport! { rust: std::thread,
    doc: "A thread local storage key which owns its contents.",
    @LocalKey as ThreadLocalKey
}
reexport! { rust: std::thread,
    doc: "A scope to spawn scoped threads in.",
    @Scope as ThreadScope
}
reexport! { rust: std::thread,
    doc: "An owned permission to join on a scoped thread (block on its termination).",
    @ScopedJoinHandle as ThreadScopedJoinHandle
}
reexport! { rust: std::thread,
    doc: "A handle to a thread.",
    Thread
}
reexport! { rust: std::thread,
    doc: "A unique identifier for a running thread.",
    ThreadId
}

/* macros */

reexport! { rust: std,
    doc: "Declare a new thread local storage key of type [`ThreadLocalKey`].",
    thread_local
}

/* aliases */

reexport! { rust: std::thread,
    tag: crate::TAG_RESULT!(),
    doc: "A specialized [`Result`] type for threads.",
    @Result as ThreadResult
}