pub struct EventStream { /* private fields */ }Expand description
Asynchronous stream of events delivered over the GVCP message channel.
A receive thread acknowledges each message as it arrives and queues its
events, so a late reader costs the camera no retransmission;
EventSocket says how many it keeps and what it does with more.
Implementations§
Source§impl EventStream
impl EventStream
Sourcepub async fn next(&self) -> Result<Event, GenicamError>
pub async fn next(&self) -> Result<Event, GenicamError>
Receive the next event emitted by the device.
Sourcepub fn stats(&self) -> EventStats
pub fn stats(&self) -> EventStats
What the message channel has received: messages, acknowledgements, the camera’s retransmissions, events queued and events dropped unread.
Sourcepub fn local_addr(&self) -> Result<SocketAddr, GenicamError>
pub fn local_addr(&self) -> Result<SocketAddr, GenicamError>
Access the local socket address used by the stream.
Auto Trait Implementations§
impl !RefUnwindSafe for EventStream
impl !UnwindSafe for EventStream
impl Freeze for EventStream
impl Send for EventStream
impl Sync for EventStream
impl Unpin for EventStream
impl UnsafeUnpin for EventStream
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