Skip to main content

set_peer_endpoint

Function set_peer_endpoint 

Source
pub fn set_peer_endpoint(
    did: &str,
    endpoint: Option<&str>,
) -> Result<(), String>
Expand description

Set (or clear) the peer’s last-known transport endpoint (host:port), then persist. Empty endpoint clears it. Errors if no such peer.