pub struct PeerRevokeResult {
pub revoked: Vec<String>,
pub severed: usize,
}Expand description
Result of Request::PeerRevoke.
Fields§
§revoked: Vec<String>The eid: principals now revoked. Empty means the name resolved to no endpoint — an ERROR
is returned instead in that case, so an empty list here never reads as success.
severed: usizeLive connections severed by this call. 0 is normal (the peer may be offline) and is NOT a
failure — but a non-zero count is the evidence that revocation was immediate rather than
deferred to the peer’s next disconnect.
Trait Implementations§
Source§impl Clone for PeerRevokeResult
impl Clone for PeerRevokeResult
Source§fn clone(&self) -> PeerRevokeResult
fn clone(&self) -> PeerRevokeResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PeerRevokeResult
impl Debug for PeerRevokeResult
Source§impl Default for PeerRevokeResult
impl Default for PeerRevokeResult
Source§fn default() -> PeerRevokeResult
fn default() -> PeerRevokeResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PeerRevokeResult
impl<'de> Deserialize<'de> for PeerRevokeResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PeerRevokeResult
Source§impl PartialEq for PeerRevokeResult
impl PartialEq for PeerRevokeResult
Source§impl Serialize for PeerRevokeResult
impl Serialize for PeerRevokeResult
impl StructuralPartialEq for PeerRevokeResult
Auto Trait Implementations§
impl Freeze for PeerRevokeResult
impl RefUnwindSafe for PeerRevokeResult
impl Send for PeerRevokeResult
impl Sync for PeerRevokeResult
impl Unpin for PeerRevokeResult
impl UnsafeUnpin for PeerRevokeResult
impl UnwindSafe for PeerRevokeResult
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more