pub struct BalloonTube {
tube: Tube,
pending_queue: VecDeque<(BalloonControlCommand, Option<usize>)>,
pending_adjust_with_completion: Option<(u64, usize)>,
}Expand description
Utility for multiplexing a balloon tube between multiple control tubes. Commands are sent and processed serially.
Fields§
§tube: Tube§pending_queue: VecDeque<(BalloonControlCommand, Option<usize>)>§pending_adjust_with_completion: Option<(u64, usize)>Implementations§
Source§impl BalloonTube
impl BalloonTube
pub fn new(tube: Tube) -> Self
Sourcepub fn send_cmd(
&mut self,
cmd: BalloonControlCommand,
key: Option<usize>,
) -> Option<(VmResponse, usize)>
pub fn send_cmd( &mut self, cmd: BalloonControlCommand, key: Option<usize>, ) -> Option<(VmResponse, usize)>
Sends or queues the given command to this tube. Associates the response with the given key.
Auto Trait Implementations§
impl Freeze for BalloonTube
impl RefUnwindSafe for BalloonTube
impl Send for BalloonTube
impl Sync for BalloonTube
impl Unpin for BalloonTube
impl UnwindSafe for BalloonTube
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