Skip to main content

ResourcesBackend

Trait ResourcesBackend 

Source
pub trait ResourcesBackend {
    // Required methods
    fn list_routes(&self) -> Result<Vec<WireRoute>, ClientError>;
    fn publish_route(&self, route: &WireRoute) -> Result<String, ClientError>;
    fn delete_route(&self, uuid: &str) -> Result<(), ClientError>;
}
Expand description

What list/save/delete need from a Signal K resources connection – exactly Client’s own three route methods, factored out so this module’s own translation logic can be tested against a fake, without a real server, the same reason waypoints::signalk’s own ResourcesBackend exists.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl ResourcesBackend for Client

Implementors§