pub struct TCPLoggerStream { /* private fields */ }Expand description
Simple TCP Logger Stream - connects to data stream only, no control
Implementations§
Source§impl TCPLoggerStream
impl TCPLoggerStream
Sourcepub fn new(addr: &str, stream_port: u16) -> Result<Self, NanonisError>
pub fn new(addr: &str, stream_port: u16) -> Result<Self, NanonisError>
Connect to TCP Logger data stream only
Creates a simple connection to the TCP data stream without any control operations. All control (start/stop/configure) should be handled externally.
§Arguments
addr- Server address (e.g., “127.0.0.1”)stream_port- TCP Logger data stream port (typically 6590)
§Returns
Connected TCPLoggerStream ready to read data frames.
Sourcepub fn spawn_background_reader(self) -> Receiver<SignalFrame>
pub fn spawn_background_reader(self) -> Receiver<SignalFrame>
Spawn background reader thread
Creates a background thread that continuously reads TCP Logger data frames and sends them through a channel. The thread automatically exits when the receiver is dropped.
§Returns
A receiver channel for TCPLoggerData frames.
Sourcepub fn read_frame(&mut self) -> Result<SignalFrame, NanonisError>
pub fn read_frame(&mut self) -> Result<SignalFrame, NanonisError>
Auto Trait Implementations§
impl Freeze for TCPLoggerStream
impl RefUnwindSafe for TCPLoggerStream
impl Send for TCPLoggerStream
impl Sync for TCPLoggerStream
impl Unpin for TCPLoggerStream
impl UnwindSafe for TCPLoggerStream
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