pub trait GreeterExtManual: IsA<Greeter> + 'static {
Show 17 methods
// Provided methods
fn authenticate(&self, username: Option<&str>) -> Result<(), Error> { ... }
fn authenticate_as_guest(&self) -> Result<(), Error> { ... }
fn authenticate_autologin(&self) -> Result<(), Error> { ... }
fn authenticate_remote(
&self,
session: &str,
username: Option<&str>,
) -> Result<(), Error> { ... }
fn cancel_authentication(&self) -> Result<(), Error> { ... }
fn connect_sync(&self) -> Result<(), Error> { ... }
fn connect_to_daemon<P: FnOnce(Result<(), Error>) + 'static>(
&self,
cancellable: Option<&impl IsA<Cancellable>>,
callback: P,
) { ... }
fn connect_to_daemon_future(
&self,
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>> { ... }
fn connect_to_daemon_sync(&self) -> Result<(), Error> { ... }
fn ensure_shared_data_dir<P: FnOnce(Result<GString, Error>) + 'static>(
&self,
username: &str,
cancellable: Option<&impl IsA<Cancellable>>,
callback: P,
) { ... }
fn ensure_shared_data_dir_future(
&self,
username: &str,
) -> Pin<Box_<dyn Future<Output = Result<GString, Error>> + 'static>> { ... }
fn ensure_shared_data_dir_sync(
&self,
username: &str,
) -> Result<GString, Error> { ... }
fn respond(&self, response: &str) -> Result<(), Error> { ... }
fn set_language(&self, language: &str) -> Result<(), Error> { ... }
fn start_session<P: FnOnce(Result<(), Error>) + 'static>(
&self,
session: Option<&str>,
cancellable: Option<&impl IsA<Cancellable>>,
callback: P,
) { ... }
fn start_session_future(
&self,
session: Option<&str>,
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>> { ... }
fn start_session_sync(&self, session: Option<&str>) -> Result<(), Error> { ... }
}Provided Methods§
Sourcefn authenticate_as_guest(&self) -> Result<(), Error>
fn authenticate_as_guest(&self) -> Result<(), Error>
Starts the authentication procedure for the guest user.
§Returns
#TRUE if authentication request sent.
Sourcefn authenticate_autologin(&self) -> Result<(), Error>
fn authenticate_autologin(&self) -> Result<(), Error>
Starts the authentication procedure for the automatic login user.
§Returns
#TRUE if authentication request sent.
Sourcefn cancel_authentication(&self) -> Result<(), Error>
fn cancel_authentication(&self) -> Result<(), Error>
Sourcefn connect_sync(&self) -> Result<(), Error>
👎Deprecated: Since 1.11.1
fn connect_sync(&self) -> Result<(), Error>
Since 1.11.1
Sourcefn connect_to_daemon<P: FnOnce(Result<(), Error>) + 'static>(
&self,
cancellable: Option<&impl IsA<Cancellable>>,
callback: P,
)
fn connect_to_daemon<P: FnOnce(Result<(), Error>) + 'static>( &self, cancellable: Option<&impl IsA<Cancellable>>, callback: P, )
Asynchronously connects the greeter to the display manager.
When the operation is finished, @callback will be invoked. You can then call lightdm_greeter_connect_to_daemon_finish() to get the result of the operation.
See lightdm_greeter_connect_to_daemon_sync() for the synchronous version.
§cancellable
A #GCancellable or None.
§callback
A #GAsyncReadyCallback to call when completed or None.
fn connect_to_daemon_future( &self, ) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
Sourcefn connect_to_daemon_sync(&self) -> Result<(), Error>
fn connect_to_daemon_sync(&self) -> Result<(), Error>
Connects the greeter to the display manager. Will block until connected.
§Returns
#TRUE if successfully connected
Ensure that a shared data dir for the given user is available. Both the greeter user and @username will have write access to that folder. The intention is that larger pieces of shared data would be stored there (files that the greeter creates but wants to give to a user – like camera photos – or files that the user creates but wants the greeter to see – like contact avatars).
LightDM will automatically create these if the user actually logs in, so greeters only need to call this method if they want to store something in the directory themselves.
§username
A username
§cancellable
A #GCancellable or None.
§callback
A #GAsyncReadyCallback to call when completed or None.
Ensure that a shared data dir for the given user is available. Both the greeter user and @username will have write access to that folder. The intention is that larger pieces of shared data would be stored there (files that the greeter creates but wants to give to a user – like camera photos – or files that the user creates but wants the greeter to see – like contact avatars).
LightDM will automatically create these if the user actually logs in, so greeters only need to call this method if they want to store something in the directory themselves.
§username
A username
§Returns
The path to the shared directory, free with g_free.
Sourcefn set_language(&self, language: &str) -> Result<(), Error>
fn set_language(&self, language: &str) -> Result<(), Error>
Sourcefn start_session<P: FnOnce(Result<(), Error>) + 'static>(
&self,
session: Option<&str>,
cancellable: Option<&impl IsA<Cancellable>>,
callback: P,
)
fn start_session<P: FnOnce(Result<(), Error>) + 'static>( &self, session: Option<&str>, cancellable: Option<&impl IsA<Cancellable>>, callback: P, )
Asynchronously start a session for the authenticated user.
When the operation is finished, @callback will be invoked. You can then call lightdm_greeter_start_session_finish() to get the result of the operation.
See lightdm_greeter_start_session_sync() for the synchronous version.
§session
The session to log into or #NULL to use the default.
§cancellable
A #GCancellable or None.
§callback
A #GAsyncReadyCallback to call when completed or None.
fn start_session_future( &self, session: Option<&str>, ) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
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.