pub struct StreamParams {
pub packet_size: u32,
pub packet_delay: Option<u32>,
pub mtu: u32,
pub host: Ipv4Addr,
pub port: u16,
pub channel: u32,
pub camera: Option<SocketAddr>,
}Expand description
Stream negotiation outcome describing the values written to the device.
Fields§
§packet_size: u32Selected GVSP packet size (bytes).
packet_delay: Option<u32>GevSCPD written, in timestamp ticks; None when the stream left the
camera’s own value alone.
mtu: u32Link MTU used to derive the packet size.
host: Ipv4AddrHost IPv4 address configured on the device.
port: u16Host port configured on the device.
channel: u32Stream channel index.
camera: Option<SocketAddr>The camera’s GVCP address, where packet resend requests go; None
for a stream received on a socket of the caller’s.
Trait Implementations§
Source§impl Clone for StreamParams
impl Clone for StreamParams
impl Copy for StreamParams
Source§impl Debug for StreamParams
impl Debug for StreamParams
impl Eq for StreamParams
Source§impl PartialEq for StreamParams
impl PartialEq for StreamParams
impl StructuralPartialEq for StreamParams
Auto Trait Implementations§
impl Freeze for StreamParams
impl RefUnwindSafe for StreamParams
impl Send for StreamParams
impl Sync for StreamParams
impl Unpin for StreamParams
impl UnsafeUnpin for StreamParams
impl UnwindSafe for StreamParams
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