pub async fn room_messages(
        &self,
        request: impl Into<get_message_events::Request<'_>>,
    ) -> Result<get_message_events::Response> {
        let req = request.into();
        self.send(req).await
    }
/// Get messages starting at a specific sync point using the
/// `MessagesRequestBuilder`s `from` field as a starting point.
///
/// Sends a request to `/_matrix/client/r0/rooms/{room_id}/messages` and
/// returns a `get_message_events::Response` that contains chunks
/// of `RoomEvents`.
///
/// # Arguments
///
/// * `request` - The easiest way to create this request is using the
/// `get_message_events::Request` itself.
///
/// # Examples
/// ```no_run
/// # use std::convert::TryFrom;
/// use matrix_sdk::Client;
/// # use matrix_sdk::identifiers::room_id;
/// # use matrix_sdk::api::r0::filter::RoomEventFilter;
/// # use matrix_sdk::api::r0::message::get_message_events::Request as MessagesRequest;
/// # use url::Url;
/// # use matrix_sdk::js_int::UInt;
///
/// # let homeserver = Url::parse("http://example.com").unwrap();
/// let room_id = room_id!("!roomid:example.com");
/// let request = MessagesRequest::backward(&room_id, "t47429-4392820_219380_26003_2265");
///
/// let mut client = Client::new(homeserver).unwrap();
/// # use futures::executor::block_on;
/// # block_on(async {
/// assert!(client.room_messages(request).await.is_ok());
/// # });
/// ```
Get messages starting at a specific sync point using the
`MessagesRequestBuilder`s `from` field as a starting point.


Get messages starting at a specific sync point using the ` MessagesRequestBuilder ` s ` from ` field as a starting point .
pub async fn room_messages(
        &self,
        request: impl Into<get_message_events::Request<'_>>,
    ) -> Result<get_message_events::Response> {
        let req = request.into();
        self.send(req).await
    }
pub async fn room_messages ( & self , request : impl Into < get_message_events :: Request < ' _ > > , ) -> Result < get_message_events :: Response > { let req = request . into ( ) ; self . send ( req ) . await }
Get messages starting at a specific sync point using the
`MessagesRequestBuilder`s `from` field as a starting point.
Get messages starting at a specific sync point using the ` MessagesRequestBuilder ` s ` from ` field as a starting point .
&self
request
impl Into<get_message_events::Request<'_>>
&self
request
impl Into<get_message_events::Request<'_>>
examples
None
use std::convert::tryfrom;
None
use matrix_sdk::identifiers::room_id;
None
use matrix_sdk::api::r0::filter::roomeventfilter;
None
use matrix_sdk::api::r0::message::get_message_events::request as messagesrequest;
None
use url::url;
None
use matrix_sdk::js_int::uint;
None
let homeserver = url::parse("http://example.com").unwrap();


let mut client = Client::new(homeserver).unwrap().
let mut client = Client :: new ( homeserver ) . unwrap () .
use futures::executor::block_on;
None
block_on(async {
None
});
None