@@ -37,7 +37,7 @@ pub trait UiController {
3737 app_pid : u32 ,
3838 app_path : String ,
3939 options : PortalBackendOptions ,
40- ) -> impl Future < Output = std:: result:: Result < Flow , Box < dyn Error > > > + Send ;
40+ ) -> impl Future < Output = std:: result:: Result < Ceremony , Box < dyn Error > > > + Send ;
4141}
4242
4343#[ proxy(
@@ -74,12 +74,12 @@ trait UiControlService2 {
7474}
7575
7676#[ derive( Clone , Debug ) ]
77- pub struct Flow {
78- proxy : Arc < FlowObjectProxy < ' static > > ,
77+ pub struct Ceremony {
78+ proxy : Arc < CeremonyObjectProxy < ' static > > ,
7979 ui_events_rx : Arc < AsyncMutex < Receiver < BackendRequest > > > ,
8080}
8181
82- impl Flow {
82+ impl Ceremony {
8383 pub async fn receive_ui_event ( & self ) -> Option < BackendRequest > {
8484 self . ui_events_rx . lock ( ) . await . recv ( ) . await
8585 }
@@ -99,10 +99,10 @@ impl Flow {
9999}
100100#[ proxy(
101101 gen_blocking = false ,
102- interface = "org.freedesktop.impl.portal.experimental.Credential.FlowObject " ,
102+ interface = "org.freedesktop.impl.portal.experimental.Credential.Ceremony " ,
103103 default_service = "xyz.iinuwa.credentialsd.UiControl"
104104) ]
105- trait FlowObject {
105+ trait CeremonyObject {
106106 async fn start ( & self ) -> fdo:: Result < ( ) > ;
107107 async fn notify_state_changed ( & self , event : BackgroundEvent ) -> fdo:: Result < ( ) > ;
108108
@@ -133,12 +133,12 @@ impl UiControlServiceClient {
133133 async fn request_proxy (
134134 & self ,
135135 request_id : RequestId ,
136- ) -> Result < FlowObjectProxy < ' _ > , zbus:: Error > {
136+ ) -> Result < CeremonyObjectProxy < ' _ > , zbus:: Error > {
137137 let object_path = ObjectPath :: from_string_unchecked ( format ! (
138138 "/org/freedesktop/portal/Credential/{}" ,
139139 request_id
140140 ) ) ;
141- FlowObjectProxy :: new ( & self . conn , object_path) . await
141+ CeremonyObjectProxy :: new ( & self . conn , object_path) . await
142142 }
143143}
144144
@@ -163,7 +163,7 @@ impl UiController for UiControlServiceClient {
163163 app_pid : u32 ,
164164 app_path : String ,
165165 options : PortalBackendOptions ,
166- ) -> Result < Flow , Box < dyn Error > > {
166+ ) -> Result < Ceremony , Box < dyn Error > > {
167167 let path = self
168168 . proxy2 ( )
169169 . await ?
@@ -181,15 +181,15 @@ impl UiController for UiControlServiceClient {
181181 )
182182 . await ?;
183183 tracing:: debug!( ?path, "Path initialized" ) ;
184- let flow_object = FlowObjectProxy :: new ( & self . conn , path) . await ?;
184+ let flow_object = CeremonyObjectProxy :: new ( & self . conn , path) . await ?;
185185 let ( from_ui_tx, from_ui_rx) = mpsc:: channel ( 32 ) ;
186186 let ui_event_stream = flow_object. receive_user_interacted ( ) . await ?;
187187 tokio:: task:: spawn ( async move {
188188 _ = forward_ui_events ( ui_event_stream, from_ui_tx) . await ;
189189 } ) ;
190190 // Mark as ready to receive messages.
191191 flow_object. start ( ) . await ?;
192- Ok ( Flow {
192+ Ok ( Ceremony {
193193 proxy : Arc :: new ( flow_object) ,
194194 ui_events_rx : Arc :: new ( AsyncMutex :: new ( from_ui_rx) ) ,
195195 } )
@@ -235,7 +235,7 @@ pub mod test {
235235 Mutex as AsyncMutex , Notify ,
236236 } ;
237237
238- use crate :: dbus:: ui_control:: Flow ;
238+ use crate :: dbus:: ui_control:: Ceremony ;
239239
240240 use super :: UiController ;
241241
@@ -270,7 +270,7 @@ pub mod test {
270270 _app_pid : u32 ,
271271 _app_path : String ,
272272 _options : PortalBackendOptions ,
273- ) -> Result < Flow , Box < dyn Error > > {
273+ ) -> Result < Ceremony , Box < dyn Error > > {
274274 unimplemented ! ( )
275275 }
276276 }
0 commit comments