pub(crate) struct ControlLeg {
pub(crate) inbox: Sender<StreamCommand>,
pub(crate) requests: Receiver<StreamCommand>,
}Expand description
The two ends of one control-stream direction’s request channel.
Created in the session’s run function, before the control stream exists, so that the sending half can go into the control-plane registry at the same moment as the rest of the session’s entry. An injection that arrives before the control stream has been established waits in this channel rather than being refused — the session is live, and there will be a stream.
Fields§
§inbox: Sender<StreamCommand>Where a request for this direction is delivered.
requests: Receiver<StreamCommand>What the direction’s pipe serves.
Implementations§
Source§impl ControlLeg
impl ControlLeg
Auto Trait Implementations§
impl Freeze for ControlLeg
impl RefUnwindSafe for ControlLeg
impl Send for ControlLeg
impl Sync for ControlLeg
impl Unpin for ControlLeg
impl UnsafeUnpin for ControlLeg
impl UnwindSafe for ControlLeg
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