pub(crate) enum CloseOrigin {
Hook,
ControlPlane,
}Expand description
Who asked for a session close.
Carried alongside the code and the reason because
ProxyEvent::SessionEnded
names the cause in prose, and the two callers are not interchangeable to
anyone reading that: a hook’s Action::CloseSession is the run
under test deciding something, while
ProxyControl::close_session
is the operator outside it pulling the plug. The recorded pair alone
cannot tell them apart — both arrive as a u32 and some bytes — and
before this every control-plane close was reported to observers as a
hook’s, which is a sentence about the run that was simply untrue.
Variants§
Trait Implementations§
Source§impl Clone for CloseOrigin
impl Clone for CloseOrigin
Source§fn clone(&self) -> CloseOrigin
fn clone(&self) -> CloseOrigin
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 moreimpl Copy for CloseOrigin
Source§impl Debug for CloseOrigin
impl Debug for CloseOrigin
impl Eq for CloseOrigin
Source§impl PartialEq for CloseOrigin
impl PartialEq for CloseOrigin
impl StructuralPartialEq for CloseOrigin
Auto Trait Implementations§
impl Freeze for CloseOrigin
impl RefUnwindSafe for CloseOrigin
impl Send for CloseOrigin
impl Sync for CloseOrigin
impl Unpin for CloseOrigin
impl UnsafeUnpin for CloseOrigin
impl UnwindSafe for CloseOrigin
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