You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/config/pool_config.rs
+2-2
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
use serde::{Deserialize,Serialize};
2
2
use std::collections::HashMap;
3
3
4
-
/// See [default.toml](https://github.com/sers-dev/tyractorsaur/blob/master/src/config/default.toml) for documentation of all configurations & their defaults
4
+
/// See [default.toml](https://github.com/sers-dev/tyra/blob/master/src/config/default.toml) for documentation of all configurations & their defaults
5
5
#[derive(Debug,Serialize,Deserialize,Clone)]
6
6
pubstructThreadPoolConfig{
7
7
pubactor_limit:usize,
@@ -18,7 +18,7 @@ impl ThreadPoolConfig {
18
18
/// Basic usage:
19
19
///
20
20
/// ```rust
21
-
/// use tyractorsaur::prelude::ThreadPoolConfig;
21
+
/// use tyra::prelude::ThreadPoolConfig;
22
22
///
23
23
/// let config = ThreadPoolConfig::new(0, 1, 2, 1.0);
Copy file name to clipboardExpand all lines: src/config/tyra_config.rs
+7-7
Original file line number
Diff line number
Diff line change
@@ -6,17 +6,17 @@ use serde::{Deserialize, Serialize};
6
6
7
7
pubconstDEFAULT_POOL:&str = "default";
8
8
9
-
/// See [default.toml](https://github.com/sers-dev/tyractorsaur/blob/master/src/config/default.toml) for documentation of all configurations & their defaults
9
+
/// See [default.toml](https://github.com/sers-dev/tyra/blob/master/src/config/default.toml) for documentation of all configurations & their defaults
10
10
#[derive(Debug,Serialize,Deserialize,Clone)]
11
-
pubstructTyractorsaurConfig{
11
+
pubstructTyraConfig{
12
12
pubgeneral:GeneralConfig,
13
13
pubthread_pool:PoolConfig,
14
14
}
15
15
16
-
implTyractorsaurConfig{
16
+
implTyraConfig{
17
17
/// Required for [ActorSystem.new](../prelude/struct.ActorSystem.html#method.new)
18
18
///
19
-
/// Loads default config from [default.toml](https://github.com/sers-dev/tyractorsaur/blob/master/src/config/default.toml)
19
+
/// Loads default config from [default.toml](https://github.com/sers-dev/tyra/blob/master/src/config/default.toml)
20
20
/// Overwrites defaults through environment variables. Replace toml `.` with `_CONFIG_`, i.e. `TYRACTORSAUR_GENERAL_CONFIG_DEFAULT_MAILBOX_SIZE=1`
21
21
///
22
22
/// Replaces `$HOSTNAME` with the actual hostname of the system for the `TYRACTORSAUR_GENERAL_CONFIG_NAME`
@@ -27,9 +27,9 @@ impl TyractorsaurConfig {
27
27
///
28
28
/// ```rust
29
29
///
30
-
/// use tyractorsaur::prelude::TyractorsaurConfig;
30
+
/// use tyra::prelude::TyraConfig;
31
31
///
32
-
/// let mut config = TyractorsaurConfig::new().unwrap();
Copy file name to clipboardExpand all lines: src/lib.rs
+4-4
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
//! Tyractorsaur is a [configurable](./prelude/struct.TyractorsaurConfig.html) typed actor framework
1
+
//! Tyra is a [configurable](./prelude/struct.TyraConfig.html) typed actor framework
2
2
//!
3
3
//! An [Actor](./prelude/trait.Actor.html) is an object with which you can only interact by sending predefined [messages](./prelude/trait.ActorMessage.html)
4
4
//!
@@ -11,7 +11,7 @@
11
11
//! Basic usage:
12
12
//!
13
13
//! ```rust
14
-
//! use tyractorsaur::prelude::*;
14
+
//! use tyra::prelude::*;
15
15
//! use std::process::exit;
16
16
//! use std::time::Duration;
17
17
//!
@@ -41,7 +41,7 @@
41
41
//!
42
42
//! fn main() {
43
43
//! // create a new actor system with the default config
44
-
//! let actor_config = TyractorsaurConfig::new().unwrap();
44
+
//! let actor_config = TyraConfig::new().unwrap();
45
45
//! let actor_system = ActorSystem::new(actor_config);
0 commit comments