Skip to main content

Module data

Module data 

Source

Re-exportsยง

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; ๐Ÿ”’

Structsยง

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

Functionsยง

key_content_type ๐Ÿ”’
key_parts ๐Ÿ”’
Components of a mediaid_file key, innermost first.