pub trait VarlinkWalldClientProxy {
type Socket: Socket;
// Required methods
async fn wall(
&mut self,
source_tty: Option<String>,
message: String,
group: Option<String>,
nobanner: bool,
timeout_secs: u32,
) -> Result<Result<VarlinkWalldClientResponse, VarlinkWalldClientError>>;
async fn write(
&mut self,
source_tty: Option<String>,
target_user: String,
target_tty: Option<String>,
message: String,
) -> Result<Result<VarlinkWalldClientResponse, VarlinkWalldClientError>>;
fn chain_wall<'c>(
&'c mut self,
source_tty: Option<String>,
message: String,
group: Option<String>,
nobanner: bool,
timeout_secs: u32,
) -> Result<Chain<'c, Self::Socket>>;
fn chain_write<'c>(
&'c mut self,
source_tty: Option<String>,
target_user: String,
target_tty: Option<String>,
message: String,
) -> Result<Chain<'c, Self::Socket>>;
}Required Associated Types§
Required Methods§
Sourceasync fn wall(
&mut self,
source_tty: Option<String>,
message: String,
group: Option<String>,
nobanner: bool,
timeout_secs: u32,
) -> Result<Result<VarlinkWalldClientResponse, VarlinkWalldClientError>>
async fn wall( &mut self, source_tty: Option<String>, message: String, group: Option<String>, nobanner: bool, timeout_secs: u32, ) -> Result<Result<VarlinkWalldClientResponse, VarlinkWalldClientError>>
Broadcast message to the tty of every logged in user, optionally restricted to group.
Sourceasync fn write(
&mut self,
source_tty: Option<String>,
target_user: String,
target_tty: Option<String>,
message: String,
) -> Result<Result<VarlinkWalldClientResponse, VarlinkWalldClientError>>
async fn write( &mut self, source_tty: Option<String>, target_user: String, target_tty: Option<String>, message: String, ) -> Result<Result<VarlinkWalldClientResponse, VarlinkWalldClientError>>
Send message to a the tty of a single user, optionally targeting a specific tty.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".