#[repr(i32)]pub enum Refusal {
NOT_REFUSED = 0,
PROTOCOL_TOO_OLD = 1,
PEER_REJECTED = 2,
SERVER_RETIRING = 3,
}Expand description
Why a server closes a connection during negotiation.
Variants§
NOT_REFUSED = 0
Not a refusal; an offer leaves this unset.
PROTOCOL_TOO_OLD = 1
The client lacks a binary version or capability the server requires.
PEER_REJECTED = 2
The server’s peer policy rejected this client.
SERVER_RETIRING = 3
The server is retiring. Read discovery again to find its successor.
Implementations§
Source§impl Refusal
impl Refusal
Sourcepub const NotRefused: Self = Self::NOT_REFUSED
pub const NotRefused: Self = Self::NOT_REFUSED
Idiomatic alias for Self::NOT_REFUSED; Debug prints the variant name.
Sourcepub const ProtocolTooOld: Self = Self::PROTOCOL_TOO_OLD
pub const ProtocolTooOld: Self = Self::PROTOCOL_TOO_OLD
Idiomatic alias for Self::PROTOCOL_TOO_OLD; Debug prints the variant name.
Sourcepub const PeerRejected: Self = Self::PEER_REJECTED
pub const PeerRejected: Self = Self::PEER_REJECTED
Idiomatic alias for Self::PEER_REJECTED; Debug prints the variant name.
Sourcepub const ServerRetiring: Self = Self::SERVER_RETIRING
pub const ServerRetiring: Self = Self::SERVER_RETIRING
Idiomatic alias for Self::SERVER_RETIRING; Debug prints the variant name.
Trait Implementations§
impl Copy for Refusal
Source§impl Enumeration for Refusal
impl Enumeration for Refusal
Source§fn proto_name(&self) -> &'static str
fn proto_name(&self) -> &'static str
The name of this enum variant as it appears in the
.proto file.impl Eq for Refusal
impl StructuralPartialEq for Refusal
Auto Trait Implementations§
impl Freeze for Refusal
impl RefUnwindSafe for Refusal
impl Send for Refusal
impl Sync for Refusal
impl Unpin for Refusal
impl UnsafeUnpin for Refusal
impl UnwindSafe for Refusal
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