Skip to main content

ServerTarget

Trait ServerTarget 

Source
pub trait ServerTarget<Req, Rep> {
    // Required method
    fn endpoint_id(&self) -> EndpointId;
}
Expand description

Target that a Server can connect to for a given request/response pair.

Required Methods§

Source

fn endpoint_id(&self) -> EndpointId

Return the target endpoint identifier.

Implementors§

Source§

impl<Req, Rep> ServerTarget<Req, Rep> for &Client<Req, Rep>

Source§

impl<Req, Rep> ServerTarget<Req, Rep> for EndpointId