Skip to main contentModule data
Source use std::sync::Arc; ๐ use futures::Stream; ๐ use futures::StreamExt; ๐ use futures::pin_mut; ๐ use ruma::Mxc; ๐ use ruma::OwnedMxcUri; ๐ use ruma::OwnedUserId; ๐ use ruma::UserId; ๐ use ruma::http_headers::ContentDisposition; ๐ use serde::Deserialize; ๐ use serde::Deserialize; ๐ use serde::Serialize; ๐ use serde::Serialize; ๐ use tuwunel_core::Err; ๐ use tuwunel_core::Result; ๐ use tuwunel_core::at; ๐ use tuwunel_core::debug; ๐ use tuwunel_core::debug; ๐ use tuwunel_core::debug_info; ๐ use tuwunel_core::err; ๐ use tuwunel_core::utils::ReadyExt; ๐ use tuwunel_core::utils::str_from_bytes; ๐ use tuwunel_core::utils::stream::TryExpect; ๐ use tuwunel_core::utils::stream::TryIgnore; ๐ use tuwunel_core::utils::string_from_bytes; ๐ use tuwunel_database::Cbor; ๐ use tuwunel_database::Database; ๐ use tuwunel_database::Deserialized; ๐ use tuwunel_database::Ignore; ๐ use tuwunel_database::Interfix; ๐ use tuwunel_database::Map; ๐ use tuwunel_database::Txn; ๐ use tuwunel_database::serialize_key; ๐ use super::Media; ๐ use super::preview::CachedPreview; ๐ use super::thumbnail::Animate; ๐ use super::thumbnail::Dim; ๐
- Data ๐
- LazyContent ๐
- Owned staging-cache value read back at promotion.
ContentDisposition is
Serialize-only, so the disposition rides as its header string. - LazyContentRef ๐
- Borrowed staging-cache value: written zero-copy from the measured bytes.
- Metadata
- key_content_type ๐
- key_parts ๐
- Components of a
mediaid_file key, innermost first.