Commit Graph

37 Commits (267453de4d9ee1cc31113f7162142b529d2ff2e8)

Author SHA1 Message Date
Devin R 267453de4d state_store: add Path to StateStore methods, remove associated Error type 2020-04-21 09:36:59 -04:00
Devin R 9fb4bd9d19 state_store: add associated store and error type, custom deserialization for ruma event types 2020-04-18 18:06:30 -04:00
Devin R 9b52b58fea command_bot: pass sync_token to sync_forever 2020-04-15 09:54:53 -04:00
Devin R 63368a9437 command_bot: remove timestamp 2020-04-15 08:44:29 -04:00
Devin R c495a50c52 async_client: make pub API take &self instead of &mut, use read where possible 2020-04-15 08:29:34 -04:00
Devin R 3f9243a326 command-bot: add comments, use timestamp to filter old messages 2020-04-15 07:52:29 -04:00
Devin R 49e962e9c4 event_emitter: use Arc<RwLock<Room for EventEmitter and joined_rooms HashMap 2020-04-15 06:58:25 -04:00
Devin R 6d1cbcd9ca remove runtime and clean up example 2020-04-14 18:14:14 -04:00
Devin R cf029b2e4f make EventEmitter shared refs, in AsyncClient::sync lock only in inner most scope 2020-04-14 18:10:10 -04:00
Devin R a5ab7d97da use AsyncClient::sync_forever 2020-04-14 15:16:20 -04:00
Devin R 87c9dbdad7 clone client 2020-04-14 14:49:29 -04:00
Devin R 6f2b5194d1 remove unused imports/vars 2020-04-14 08:45:40 -04:00
Devin R 5f2269f12f party bot example responds to !party 2020-04-14 08:39:51 -04:00
Devin R c2b3210cc9 cargo fmt/clippy, move power levels into Room 2020-04-05 12:41:00 -04:00
Devin R e987a9006b remove User and merge fields into RoomMember 2020-04-05 08:34:02 -04:00
Devin R 4ac9153be1 use RoomId and UserId over string, use setter method names in Room 2020-04-03 09:07:40 -04:00
Devin R 187734f449 add test and docs for EventEmitter, fix review issues 2020-04-02 15:59:13 -04:00
Devin R 2ed152708c use inner event type for EventEmitter methods 2020-04-01 16:36:20 -04:00
Devin R 5c418f3420 cargo fmt/clippy 2020-04-01 16:36:20 -04:00
Devin R f2b50677b9 fix example, use tokio::Mutex for all types that could be passed
in async thread spawn envs
2020-04-01 16:36:17 -04:00
Devin R 5612825762 add EventEmitter trait, clean up imports so new warnings are easier to see 2020-04-01 16:35:50 -04:00
Devin R 9ee8a2d011 merged add-events, fix a few type changes and merge fails 2020-03-28 08:58:02 -04:00
Devin R b1027796c8 Merge branch 'add-events' into room-name 2020-03-28 08:36:30 -04:00
Devin R 090600e6aa restructure folders, add User, fill out RoomMember, handle prescence. 2020-03-28 06:58:30 -04:00
Damir Jelić 7595cab178 async_client: Allow setting the initial device display name. 2020-03-27 09:22:29 +01:00
Damir Jelić 1b8b3da733 rust-sdk: Add initial tracing/logging setup. 2020-03-19 13:55:04 +01:00
Damir Jelić d2141624d0 Cargo.toml: Rename the crate. 2020-02-21 17:01:34 +01:00
Damir Jelić 41a183b4c0 nio: Upgrade ruma-client-api. 2019-12-04 19:31:33 +01:00
Damir Jelić 38ddad1874 async_client: Properly handle the EventResult for our timeline. 2019-11-26 20:47:02 +01:00
Damir Jelić e9dfabf847 async_client: Add the event callbacks back. 2019-11-26 19:06:29 +01:00
Damir Jelić 8d58938b41 nio-rust: Format the repo. 2019-11-10 18:33:06 +01:00
Damir Jelić 066d76cc8e nio: Make the callback futures Sync/Send. 2019-10-31 09:17:13 +01:00
Damir Jelić 71d8500453 nio: Reintroduce futures as callbacks. 2019-10-30 23:26:26 +01:00
Damir Jelić b61dc18060 nio: Allow callbacks to borrow the room, sadly back to non async callbacks. 2019-10-30 19:30:55 +01:00
Damir Jelić f6d371b36f async_client: Remove the non-async callbacks. 2019-10-23 22:51:34 +02:00
Damir Jelić cf17173037 nio: Add initial base client state machine. 2019-10-23 22:47:00 +02:00
Damir Jelić 4989108324 Initial commit. 2019-10-20 13:56:46 +02:00