Skip to main content

NetworkBackend

Trait NetworkBackend 

Source
pub trait NetworkBackend: Send + Sync {
    // Required methods
    fn socket_path(&self) -> &Path;
    fn stop(&mut self);
}
Expand description

Platform-agnostic handle to a running network backend process or thread.

Required Methods§

Source

fn socket_path(&self) -> &Path

Path to the Unix socket used to communicate with this backend.

Source

fn stop(&mut self)

Stop the backend and clean up the socket.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§