pub trait UnixConnectionExt: IsA<UnixConnection> + 'static {
// Provided methods
fn receive_credentials(
&self,
cancellable: Option<&impl IsA<Cancellable>>,
) -> Result<Credentials, Error> { ... }
fn receive_credentials_async<P: FnOnce(Result<Credentials, Error>) + 'static>(
&self,
cancellable: Option<&impl IsA<Cancellable>>,
callback: P,
) { ... }
fn receive_credentials_future(
&self,
) -> Pin<Box_<dyn Future<Output = Result<Credentials, Error>> + 'static>> { ... }
fn receive_fd(
&self,
cancellable: Option<&impl IsA<Cancellable>>,
) -> Result<i32, Error> { ... }
fn send_credentials(
&self,
cancellable: Option<&impl IsA<Cancellable>>,
) -> Result<(), Error> { ... }
fn send_credentials_async<P: FnOnce(Result<(), Error>) + 'static>(
&self,
cancellable: Option<&impl IsA<Cancellable>>,
callback: P,
) { ... }
fn send_credentials_future(
&self,
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>> { ... }
fn send_fd(
&self,
fd: i32,
cancellable: Option<&impl IsA<Cancellable>>,
) -> Result<(), Error> { ... }
}Provided Methods§
fn receive_credentials( &self, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<Credentials, Error>
fn receive_credentials_async<P: FnOnce(Result<Credentials, Error>) + 'static>( &self, cancellable: Option<&impl IsA<Cancellable>>, callback: P, )
fn receive_credentials_future( &self, ) -> Pin<Box_<dyn Future<Output = Result<Credentials, Error>> + 'static>>
fn receive_fd( &self, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<i32, Error>
fn send_credentials( &self, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<(), Error>
fn send_credentials_async<P: FnOnce(Result<(), Error>) + 'static>( &self, cancellable: Option<&impl IsA<Cancellable>>, callback: P, )
fn send_credentials_future( &self, ) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
fn send_fd( &self, fd: i32, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<(), Error>
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.