[][src]Trait aravis::GvDeviceExt

pub trait GvDeviceExt: 'static {
    fn auto_packet_size(&self) -> Result<(), Error>;
fn get_device_address(&self) -> Option<SocketAddress>;
fn get_interface_address(&self) -> Option<SocketAddress>;
fn get_packet_size(&self) -> Result<u32, Error>;
fn get_stream_options(&self) -> GvStreamOption;
fn get_timestamp_tick_frequency(&self) -> Result<u64, Error>;
fn is_controller(&self) -> bool;
fn set_packet_size(&self, packet_size: i32) -> Result<(), Error>;
fn set_stream_options(&self, options: GvStreamOption); }

Trait containing all GvDevice methods.

Implementors

GvDevice

Required methods

fn auto_packet_size(&self) -> Result<(), Error>

Automatically determine the biggest packet size that can be used data streaming, and set GevSCPSPacketSize value accordingly. This function relies on the GevSCPSFireTestPacket feature. If this feature is not available, the packet size will be set to a default value (1500 bytes).

Returns

The packet size, in bytes.

fn get_device_address(&self) -> Option<SocketAddress>

Returns

the device IP address.

fn get_interface_address(&self) -> Option<SocketAddress>

Returns

the device host interface IP address.

fn get_packet_size(&self) -> Result<u32, Error>

fn get_stream_options(&self) -> GvStreamOption

Returns

options for stream creation

fn get_timestamp_tick_frequency(&self) -> Result<u64, Error>

fn is_controller(&self) -> bool

Returns

value indicating whether the ArvGvDevice has control access to the camera

fn set_packet_size(&self, packet_size: i32) -> Result<(), Error>

fn set_stream_options(&self, options: GvStreamOption)

Sets the option used during stream creation. It must be called before Device::create_stream.

options

options for stream creation

Loading content...

Implementors

Loading content...