Add more detailed documentation for Client::log_in
This commit is contained in:
parent
61d848d2b5
commit
fcd6985618
@ -100,7 +100,11 @@ where
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Log in to the homeserver with a username and password.
|
/// Log in with a username and password.
|
||||||
|
///
|
||||||
|
/// In contrast to api::r0::session::login::call(), this method stores the
|
||||||
|
/// session data returned by the endpoint in this client, instead of
|
||||||
|
/// returning it.
|
||||||
pub fn log_in<'a>(&'a self, user: String, password: String)
|
pub fn log_in<'a>(&'a self, user: String, password: String)
|
||||||
-> impl Future<Item = (), Error = Error> + 'a {
|
-> impl Future<Item = (), Error = Error> + 'a {
|
||||||
let request = login::Request {
|
let request = login::Request {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user