Skip to main content

InterfaceMapping

Trait InterfaceMapping 

Source
pub trait InterfaceMapping {
    // Required methods
    fn endpoint(&self) -> &Endpoint<String>;
    fn mapping_type(&self) -> MappingType;
}
Expand description

Mapping of an interface.

Required Methods§

Source

fn endpoint(&self) -> &Endpoint<String>

Returns a reference to the endpoint of an interface.

Source

fn mapping_type(&self) -> MappingType

Returns the mapping type.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§