Skip to main content

encode_route_bind

Function encode_route_bind 

Source
pub fn encode_route_bind(
    bind: &ModuleControlRequest,
    peer: &RouteBindPeer,
) -> Result<Vec<u8>>
Expand description

Encodes a route.bind body with peer’s keys after the bind’s own keys.

With an empty peer the bytes equal serde_json::to_vec(bind). Fails for any request other than ModuleControlRequest::RouteBind, because only a bind carries these keys.