matrix_sdk::ruma::api

Trait IncomingResponse

Source
pub trait IncomingResponse: Sized {
    type EndpointError: EndpointError;

    // Required method
    fn try_from_http_response<T>(
        response: Response<T>,
    ) -> Result<Self, FromHttpResponseError<Self::EndpointError>>
       where T: AsRef<[u8]>;
}
Available on crate feature api only.
Expand description

A response type for a Matrix API endpoint, used for receiving responses.

Required Associated Types§

Source

type EndpointError: EndpointError

A type capturing the expected error conditions the server can return.

Required Methods§

Source

fn try_from_http_response<T>( response: Response<T>, ) -> Result<Self, FromHttpResponseError<Self::EndpointError>>
where T: AsRef<[u8]>,

Tries to convert the given http::Response into this response type.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::uiaa::get_uiaa_fallback_page::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::account::add_3pid::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::account::bind_3pid::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::account::change_password::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::account::check_registration_token_validity::v1::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::account::deactivate::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::account::delete_3pid::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::account::get_3pids::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::account::get_username_availability::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::account::register::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::account::request_3pid_management_token_via_email::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::account::request_3pid_management_token_via_msisdn::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::account::request_openid_token::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::account::request_password_change_token_via_email::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::account::request_password_change_token_via_msisdn::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::account::request_registration_token_via_email::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::account::request_registration_token_via_msisdn::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::account::unbind_3pid::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::account::whoami::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::alias::create_alias::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::alias::delete_alias::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::alias::get_alias::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::appservice::request_ping::v1::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::appservice::set_room_visibility::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::authenticated_media::get_content::v1::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::authenticated_media::get_content_as_filename::v1::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::authenticated_media::get_content_thumbnail::v1::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::authenticated_media::get_media_config::v1::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::authenticated_media::get_media_preview::v1::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::backup::add_backup_keys::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::backup::add_backup_keys_for_room::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::backup::add_backup_keys_for_session::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::backup::create_backup_version::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::backup::delete_backup_keys::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::backup::delete_backup_keys_for_room::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::backup::delete_backup_keys_for_session::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::backup::delete_backup_version::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::backup::get_backup_info::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::backup::get_backup_keys::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::backup::get_backup_keys_for_room::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::backup::get_backup_keys_for_session::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::backup::get_latest_backup_info::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::backup::update_backup_version::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::config::get_global_account_data::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::config::get_room_account_data::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::config::set_global_account_data::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::config::set_room_account_data::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::context::get_context::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::dehydrated_device::delete_dehydrated_device::unstable::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::dehydrated_device::get_dehydrated_device::unstable::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::dehydrated_device::get_events::unstable::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::dehydrated_device::put_dehydrated_device::unstable::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::delayed_events::delayed_message_event::unstable::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::delayed_events::delayed_state_event::unstable::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::delayed_events::update_delayed_event::unstable::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::device::delete_device::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::device::delete_devices::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::device::get_device::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::device::get_devices::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::device::update_device::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::directory::get_public_rooms::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::directory::get_public_rooms_filtered::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::directory::get_room_visibility::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::directory::set_room_visibility::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::discovery::discover_homeserver::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::discovery::discover_support::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::discovery::get_authentication_issuer::msc2965::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::discovery::get_capabilities::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::discovery::get_supported_versions::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::filter::create_filter::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::filter::get_filter::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::keys::claim_keys::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::keys::get_key_changes::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::keys::get_keys::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::keys::upload_keys::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::keys::upload_signatures::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::keys::upload_signing_keys::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::knock::knock_room::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::media::create_content::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::media::create_content_async::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::media::create_mxc_uri::v1::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::media::get_content::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::media::get_content_as_filename::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::media::get_content_thumbnail::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::media::get_media_config::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::media::get_media_preview::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::membership::ban_user::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::membership::forget_room::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::membership::get_member_events::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::membership::invite_user::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::membership::join_room_by_id::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::membership::join_room_by_id_or_alias::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::membership::joined_members::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::membership::joined_rooms::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::membership::kick_user::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::membership::leave_room::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::membership::unban_user::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::message::get_message_events::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::message::send_message_event::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::presence::get_presence::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::presence::set_presence::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::profile::get_avatar_url::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::profile::get_display_name::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::profile::get_profile::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::profile::set_avatar_url::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::profile::set_display_name::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::push::delete_pushrule::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::push::get_notifications::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::push::get_pushers::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::push::get_pushrule::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::push::get_pushrule_actions::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::push::get_pushrule_enabled::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::push::get_pushrules_all::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::push::get_pushrules_global_scope::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::push::set_pusher::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::push::set_pushrule::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::push::set_pushrule_actions::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::push::set_pushrule_enabled::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::read_marker::set_read_marker::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::receipt::create_receipt::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::redact::redact_event::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::relations::get_relating_events::v1::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::relations::get_relating_events_with_rel_type::v1::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::relations::get_relating_events_with_rel_type_and_event_type::v1::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::rendezvous::create_rendezvous_session::unstable::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::room::aliases::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::room::create_room::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::room::get_event_by_timestamp::v1::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::room::get_room_event::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::room::get_summary::msc3266::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::room::report_content::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::room::upgrade_room::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::search::search_events::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::server::get_user_info::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::session::get_login_token::v1::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::session::get_login_types::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::session::login::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::session::login_fallback::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::session::logout::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::session::logout_all::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::session::refresh_token::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::session::sso_login::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::session::sso_login_with_provider::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::space::get_hierarchy::v1::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::state::get_state_events::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::state::get_state_events_for_key::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::state::send_state_event::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::sync::sync_events::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::sync::sync_events::v4::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::sync::sync_events::v5::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::tag::create_tag::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::tag::delete_tag::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::tag::get_tags::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::thirdparty::get_location_for_protocol::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::thirdparty::get_location_for_room_alias::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::thirdparty::get_protocol::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::thirdparty::get_protocols::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::thirdparty::get_user_for_protocol::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::thirdparty::get_user_for_user_id::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::threads::get_threads::v1::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::to_device::send_event_to_device::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::typing::create_typing_event::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::user_directory::search_users::v3::Response

Available on crate feature client only.
Source§

impl IncomingResponse for matrix_sdk::ruma::api::client::voip::get_turn_server_info::v3::Response

Available on crate feature client only.