Skip to content

QuantumGate::Access::Manager::UpdatePeer

Karel Donk edited this page Dec 11, 2019 · 1 revision

Updates the access settings for a peer on the instance.

Signature

Result<> UpdatePeer(PeerAccessSettings&& pas) noexcept;

Parameters

Name Description
pas The access settings for the peer. See QuantumGate::Access::PeerAccessSettings for more details.

Return values

Returns a QuantumGate::Result object equal to one of the following QuantumGate::ResultCodes:

Value Description
QuantumGate::ResultCode::Succeeded The operation succeeded.
QuantumGate::ResultCode::Failed The operation failed.
QuantumGate::ResultCode::InvalidArgument The operation failed because an invalid argument was passed through. The UUID and the public key may not belong together.
QuantumGate::ResultCode::PeerNotFound The operation failed because the peer wasn't found.
Clone this wiki locally