Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions gio/src/dbus_method_invocation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ impl DBusMethodInvocation {
// rustdoc-stripper-ignore-next
/// Return a result for this invocation.
///
/// If `Ok` return the contained value with [`return_value`]. If the return
/// If `Ok` return the contained value with [`Self::return_value`]. If the return
/// value is not a tuple, automatically convert it to a one-element tuple, as
/// DBus return values must be tuples.
///
/// If `Err` return the contained error with [`return_gerror`].
/// If `Err` return the contained error with [`Self::return_gerror`].
pub fn return_result(self, result: Result<Option<glib::Variant>, glib::Error>) {
match result {
Ok(Some(value)) if !value.is_type(VariantTy::TUPLE) => {
Expand All @@ -50,7 +50,7 @@ impl DBusMethodInvocation {
/// Return an async result for this invocation.
///
/// Spawn the given future on the thread-default main context, and return the
/// the result with [`return_result`]. Specifically, if a variant is returned
/// the result with [`Self::return_result`]. Specifically, if a variant is returned
/// that is not a tuple it is automatically wrapped into a tuple.
///
/// The given `Future` does not have to be `Send`.
Expand Down
Loading