pub struct WorkerPort {
info: Option<ConsolePortInfo>,
in_avail_evt: Event,
input_buffer: Arc<Mutex<VecDeque<u8>>>,
output: Box<dyn Write + Send>,
}Fields§
§info: Option<ConsolePortInfo>§in_avail_evt: Event§input_buffer: Arc<Mutex<VecDeque<u8>>>§output: Box<dyn Write + Send>Implementations§
Source§impl WorkerPort
impl WorkerPort
pub fn from_console_port(port: &mut ConsolePort) -> WorkerPort
Sourcepub fn into_console_port(self, console_port: &mut ConsolePort)
pub fn into_console_port(self, console_port: &mut ConsolePort)
Restore the state retrieved from ConsolePort by WorkerPort::from_console_port().
pub fn is_console(&self) -> bool
pub fn name(&self) -> Option<&str>
Auto Trait Implementations§
impl Freeze for WorkerPort
impl !RefUnwindSafe for WorkerPort
impl Send for WorkerPort
impl !Sync for WorkerPort
impl Unpin for WorkerPort
impl !UnwindSafe for WorkerPort
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