pub enum RelaySessionCloseReason {
DownstreamDisconnected {
reason: PeerDisconnectReason,
},
UpstreamDisconnected {
reason: ClientDisconnectReason,
},
UpstreamConnectFailed {
message: String,
},
UpstreamSendFailed {
message: String,
},
DownstreamSendFailed {
message: String,
},
ContractViolation {
direction: RelayDirection,
error: RelayContractError,
},
PolicyDisconnect {
direction: RelayDirection,
reason: &'static str,
},
BudgetExceeded {
direction: RelayDirection,
details: RelayBudgetExceeded,
},
DownstreamQueueOverflow,
CommandChannelClosed,
ProxyShutdown,
}Variants§
DownstreamDisconnected
Fields
§
reason: PeerDisconnectReasonUpstreamDisconnected
Fields
§
reason: ClientDisconnectReasonUpstreamConnectFailed
UpstreamSendFailed
DownstreamSendFailed
ContractViolation
PolicyDisconnect
BudgetExceeded
DownstreamQueueOverflow
CommandChannelClosed
ProxyShutdown
Trait Implementations§
Source§impl Clone for RelaySessionCloseReason
impl Clone for RelaySessionCloseReason
Source§fn clone(&self) -> RelaySessionCloseReason
fn clone(&self) -> RelaySessionCloseReason
Returns a duplicate of the value. Read more
1.0.0 · 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 RelaySessionCloseReason
impl Debug for RelaySessionCloseReason
Source§impl PartialEq for RelaySessionCloseReason
impl PartialEq for RelaySessionCloseReason
impl Eq for RelaySessionCloseReason
impl StructuralPartialEq for RelaySessionCloseReason
Auto Trait Implementations§
impl Freeze for RelaySessionCloseReason
impl RefUnwindSafe for RelaySessionCloseReason
impl Send for RelaySessionCloseReason
impl Sync for RelaySessionCloseReason
impl Unpin for RelaySessionCloseReason
impl UnsafeUnpin for RelaySessionCloseReason
impl UnwindSafe for RelaySessionCloseReason
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