7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 1 | // Copyright 2020 Damir Jelić |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 2 | // Copyright 2020 The Matrix.org Foundation C.I.C. |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 3 | // |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 4 | // Licensed under the Apache License, Version 2.0 (the "License"); |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 5 | // you may not use this file except in compliance with the License. |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 6 | // You may obtain a copy of the License at |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 7 | // |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 8 | // http://www.apache.org/licenses/LICENSE-2.0 |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 9 | // |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 10 | // Unless required by applicable law or agreed to in writing, software |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 11 | // distributed under the License is distributed on an "AS IS" BASIS, |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 12 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 13 | // See the License for the specific language governing permissions and |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 14 | // limitations under the License. |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 15 | |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 16 | #![doc = include_str!("../README.md")] |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 17 | #![cfg_attr(docsrs, feature(doc_cfg))] |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 18 | #![cfg_attr(target_family = "wasm", allow(clippy::arc_with_non_send_sync))] |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 19 | #![warn(missing_docs, missing_debug_implementations)] |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 20 | |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 21 | pub use matrix_sdk_common::*; |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 22 | use ruma::{OwnedDeviceId, OwnedUserId}; |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 23 | use serde::{Deserialize, Serialize}; |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 24 | |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 25 | pub use crate::error::{Error, Result}; |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 26 | |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 27 | mod client; |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 28 | pub use client::RequestedRequiredStates; |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 29 | pub mod debug; |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 30 | pub mod deserialized_responses; |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 31 | mod error; |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 32 | pub mod event_cache; |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 33 | pub mod latest_event; |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 34 | pub mod media; |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 35 | pub mod notification_settings; |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 36 | pub mod read_receipts; |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 37 | mod response_processors; |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 38 | mod room; |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 39 | |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 40 | pub mod sliding_sync; |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 41 | |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 42 | pub mod store; |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 43 | pub mod sync; |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 44 | #[cfg(any(test, feature = "testing"))] |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 45 | mod test_utils; |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 46 | mod utils; |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 47 | |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 48 | pub use client::DmRoomDefinition; |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 49 | |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 50 | #[cfg(feature = "experimental-element-recent-emojis")] |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 51 | pub mod recent_emojis; |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 52 | |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 53 | #[cfg(feature = "uniffi")] |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 54 | uniffi::setup_scaffolding!(); |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 55 | |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 56 | pub use client::{BaseClient, ThreadingSupport}; |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 57 | #[cfg(any(test, feature = "testing"))] |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 58 | pub use http; |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 59 | #[cfg(feature = "e2e-encryption")] |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 60 | pub use matrix_sdk_crypto as crypto; |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 61 | pub use room::{ |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 62 | CallIntentConsensus, EncryptionState, PredecessorRoom, Room, RoomCreateWithCreatorEventContent, |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 63 | RoomDisplayName, RoomHero, RoomInfo, RoomInfoNotableUpdate, RoomInfoNotableUpdateReasons, |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 64 | RoomMember, RoomMembersUpdate, RoomMemberships, RoomRecencyStamp, RoomState, RoomStateFilter, |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 65 | SuccessorRoom, apply_redaction, |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 66 | }; |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 67 | pub use store::{ |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 68 | ComposerDraft, ComposerDraftType, DraftAttachment, DraftAttachmentContent, DraftThumbnail, |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 69 | QueueWedgeError, StateChanges, StateStore, StateStoreDataKey, StateStoreDataValue, StoreError, |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 70 | ThreadSubscriptionCatchupToken, |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 71 | }; |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 72 | pub use utils::{MinimalRoomMemberEvent, MinimalStateEvent, RawStateEventWithKeys}; |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 73 | |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 74 | #[cfg(test)] |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 75 | matrix_sdk_test_utils::init_tracing_for_tests!(); |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 76 | |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 77 | /// The Matrix user session info. |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 78 | #[derive(Clone, Debug, Eq, Hash, PartialEq, Serialize, Deserialize)] |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 79 | pub struct SessionMeta { |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 80 | /// The ID of the session's user. |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 81 | pub user_id: OwnedUserId, |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 82 | /// The ID of the client device. |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 83 | pub device_id: OwnedDeviceId, |
7ff8adafe9e4 | atagen | 2026-10-22 12:30 UTC | 84 | } |