pub(crate) enum Direction {
Uplink,
Downlink,
}Expand description
Which leg of the proxy a shaped unit is travelling on.
Two variants rather than ProxySide’s four. A unit is charged on the
side it arrived on, and the two egress sides never reach a shaping
decision at all — ShapeProfile::try_new rejects a rule keyed on one
— but both halves of a leg answer the same question anyway, so the
conversion below is total and no call site has an impossible arm to
invent a value for.
Variants§
Uplink
Client → relay: what the client publishes and asks for.
Downlink
Relay → client: what the client is subscribed to.
Implementations§
Trait Implementations§
impl Copy for Direction
impl Eq for Direction
impl StructuralPartialEq for Direction
Auto Trait Implementations§
impl Freeze for Direction
impl RefUnwindSafe for Direction
impl Send for Direction
impl Sync for Direction
impl Unpin for Direction
impl UnsafeUnpin for Direction
impl UnwindSafe for Direction
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