Struct aravis::Camera

source ·
#[repr(transparent)]
pub struct Camera { /* private fields */ }

Implementations§

source§

impl Camera

source

pub fn new(name: Option<&str>) -> Result<Camera, Error>

Creates a new Camera. If name is null, it will instantiate the first available camera.

If the camera is a GigEVision, name can be either:

  • <vendor>-<model>-<serial>
  • <vendor_alias>-<serial>
  • <vendor>-<serial>
  • <user_id>
  • <ip_address>
  • <mac_address>

For example:

  • The Imaging Source Europe GmbH-DFK 33GX265-39020369
  • The Imaging Source Europe GmbH-39020369
  • TIS-39020369
  • 192.168.0.2
  • 00:07:48:af:a2:61

If the camera is a USB3Vision device, name is either:

  • <vendor_alias>-<serial>
  • <vendor>-<serial>
name

name of the camera.

Returns

a new Camera.

source

pub fn with_device<P: IsA<Device>>(device: &P) -> Result<Camera, Error>

Available on crate feature v0_8_6 only.

Creates a new Camera, using device as its internal device object.

device

a Device

Returns

a new Camera.

Trait Implementations§

source§

impl Clone for Camera

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Camera

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Camera

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl HasParamSpec for Camera

§

type ParamSpec = ParamSpecObject

§

type SetValue = Camera

Preferred value to be used as setter for the associated ParamSpec.
§

type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, Camera>

source§

fn param_spec_builder() -> Self::BuilderFn

source§

impl Hash for Camera

source§

fn hash<H>(&self, state: &mut H)where H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Ord for Camera

source§

fn cmp(&self, other: &Self) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>,

Restrict a value to a certain interval. Read more
source§

impl ParentClassIs for Camera

source§

impl<OT: ObjectType> PartialEq<OT> for Camera

source§

fn eq(&self, other: &OT) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<OT: ObjectType> PartialOrd<OT> for Camera

source§

fn partial_cmp(&self, other: &OT) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl StaticType for Camera

source§

fn static_type() -> Type

Returns the type identifier of Self.
source§

impl Eq for Camera

source§

impl Send for Camera

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<O> CameraExt for Owhere O: IsA<Camera>,

source§

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

Aborts video stream acquisition.
source§

fn acquisition(&self, timeout: u64) -> Result<Buffer, Error>

Acquire one image buffer. Read more
source§

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

Available on crate feature v0_8_8 only.
Returns Read more
source§

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

Disables all triggers.
source§

fn create_chunk_parser(&self) -> Option<ChunkParser>

Creates a new ChunkParser object, used for the extraction of chunk data from Buffer. Read more
source§

fn dup_available_enumerations( &self, feature: &str ) -> Result<Vec<i64, Global>, Error>

Get all the available values of feature, as 64 bit integers. Read more
source§

fn dup_available_enumerations_as_display_names( &self, feature: &str ) -> Result<Vec<GString, Global>, Error>

Get display names of all the available entries of feature. Read more
source§

fn dup_available_enumerations_as_strings( &self, feature: &str ) -> Result<Vec<GString, Global>, Error>

Get all the available values of feature, as strings. Read more
source§

fn dup_available_pixel_formats(&self) -> Result<Vec<i64, Global>, Error>

Retrieves the list of all available pixel formats. Read more
source§

fn dup_available_pixel_formats_as_display_names( &self ) -> Result<Vec<GString, Global>, Error>

Retrieves the list of all available pixel formats as display names. In general, these human-readable strings cannot be used as settings. Read more
source§

fn dup_available_pixel_formats_as_strings( &self ) -> Result<Vec<GString, Global>, Error>

Retrieves the list of all available pixel formats as strings. Read more
source§

fn dup_available_trigger_sources(&self) -> Result<Vec<GString, Global>, Error>

Gets the list of all available trigger sources. Read more
source§

fn dup_available_triggers(&self) -> Result<Vec<GString, Global>, Error>

Gets a list of all available triggers: FrameStart, ExposureActive, etc… Read more
source§

fn execute_command(&self, feature: &str) -> Result<(), Error>

Execute a Genicam command. Read more
source§

fn acquisition_mode(&self) -> Result<AcquisitionMode, Error>

Returns Read more
source§

fn binning(&self) -> Result<(i32, i32), Error>

Retrieves binning in both directions. Read more
source§

fn black_level(&self) -> Result<f64, Error>

Available on crate feature v0_8_19 only.
source§

fn black_level_auto(&self) -> Result<Auto, Error>

Available on crate feature v0_8_19 only.
source§

fn black_level_bounds(&self) -> Result<(f64, f64), Error>

Available on crate feature v0_8_19 only.
source§

fn boolean(&self, feature: &str) -> Result<bool, Error>

feature Read more
source§

fn chunk_mode(&self) -> Result<bool, Error>

Check wether chunk data mode is active. Please see set_chunk_mode(). Read more
source§

fn chunk_state(&self, chunk: &str) -> Result<bool, Error>

Gets state of chunk data. Chunk data are be embedded in Buffer only if chunk mode is active. Please see set_chunk_mode(). Read more
source§

fn device(&self) -> Option<Device>

Retrieves the Device object for more complete access to camera features. Read more
source§

fn device_id(&self) -> Result<GString, Error>

Returns Read more
source§

fn device_serial_number(&self) -> Result<GString, Error>

Available on crate feature v0_8_8 only.
Returns Read more
source§

fn exposure_time(&self) -> Result<f64, Error>

Returns Read more
source§

fn exposure_time_auto(&self) -> Result<Auto, Error>

Returns Read more
source§

fn exposure_time_bounds(&self) -> Result<(f64, f64), Error>

Retrieves exposure time bounds, in µs. Read more
source§

fn float(&self, feature: &str) -> Result<f64, Error>

feature Read more
source§

fn float_bounds(&self, feature: &str) -> Result<(f64, f64), Error>

Retrieves float feature bounds. Read more
source§

fn float_increment(&self, feature: &str) -> Result<f64, Error>

Available on crate feature v0_8_16 only.
source§

fn frame_count(&self) -> Result<i64, Error>

Returns Read more
source§

fn frame_count_bounds(&self) -> Result<(i64, i64), Error>

Retrieves allowed range for frame count. Read more
source§

fn frame_rate(&self) -> Result<f64, Error>

Returns Read more
source§

fn frame_rate_bounds(&self) -> Result<(f64, f64), Error>

Retrieves allowed range for framerate. Read more
source§

fn gain(&self) -> Result<f64, Error>

Returns Read more
source§

fn gain_auto(&self) -> Result<Auto, Error>

Returns Read more
source§

fn gain_bounds(&self) -> Result<(f64, f64), Error>

Retrieves gain bounds. Read more
source§

fn height_bounds(&self) -> Result<(i32, i32), Error>

Retrieves the valid range for image height. Read more
source§

fn height_increment(&self) -> Result<i32, Error>

Returns Read more
source§

fn integer(&self, feature: &str) -> Result<i64, Error>

feature Read more
source§

fn integer_bounds(&self, feature: &str) -> Result<(i64, i64), Error>

Retrieves integer feature bounds. Read more
source§

fn integer_increment(&self, feature: &str) -> Result<i64, Error>

feature Read more
source§

fn model_name(&self) -> Result<GString, Error>

Returns Read more
source§

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

Retrieves the size needed for the storage of an image. This value is used for the creation of the stream buffers. Read more
source§

fn pixel_format(&self) -> Result<PixelFormat, Error>

Returns Read more
source§

fn pixel_format_as_string(&self) -> Result<GString, Error>

Retuns: pixel format as string, NULL on error.
source§

fn region(&self) -> Result<(i32, i32, i32, i32), Error>

Retrieves the current region of interest. Read more
source§

fn sensor_size(&self) -> Result<(i32, i32), Error>

Returns Read more
source§

fn string(&self, feature: &str) -> Result<GString, Error>

feature Read more
source§

fn trigger_source(&self) -> Result<GString, Error>

Gets the trigger source. This function doesn’t check if the camera is configured to actually use this source as a trigger. Read more
source§

fn vendor_name(&self) -> Result<GString, Error>

Returns Read more
source§

fn width_bounds(&self) -> Result<(i32, i32), Error>

Retrieves the valid range for image width. Read more
source§

fn width_increment(&self) -> Result<i32, Error>

Returns Read more
source§

fn x_binning_bounds(&self) -> Result<(i32, i32), Error>

Retrieves the valid range for image horizontal binning. Read more
source§

fn x_binning_increment(&self) -> Result<i32, Error>

Returns Read more
source§

fn x_offset_bounds(&self) -> Result<(i32, i32), Error>

Retrieves the valid range for image horizontal offset. Read more
source§

fn x_offset_increment(&self) -> Result<i32, Error>

Returns Read more
source§

fn y_binning_bounds(&self) -> Result<(i32, i32), Error>

Retrieves the valid range for image vertical binning. Read more
source§

fn y_binning_increment(&self) -> Result<i32, Error>

Returns Read more
source§

fn y_offset_bounds(&self) -> Result<(i32, i32), Error>

Retrieves the valid range for image vertical offset. Read more
source§

fn y_offset_increment(&self) -> Result<i32, Error>

Returns Read more
source§

fn gv_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). Read more
source§

fn gv_get_current_stream_channel(&self) -> Result<i32, Error>

Returns Read more
source§

fn gv_get_ip_configuration_mode(&self) -> Result<GvIpConfigurationMode, Error>

Available on crate feature v0_8_22 only.
source§

fn gv_get_n_stream_channels(&self) -> Result<i32, Error>

Returns Read more
source§

fn gv_get_packet_delay(&self) -> Result<i64, Error>

Returns Read more
source§

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

Returns Read more
source§

fn gv_get_persistent_ip( &self ) -> Result<(InetAddress, InetAddressMask, InetAddress), Error>

Available on crate feature v0_8_22 only.
source§

fn gv_select_stream_channel(&self, channel_id: i32) -> Result<(), Error>

Select the current stream channel. Negative channel_id is ignored. Read more
source§

fn gv_set_ip_configuration_mode( &self, mode: GvIpConfigurationMode ) -> Result<(), Error>

Available on crate feature v0_8_22 only.
source§

fn gv_set_packet_delay(&self, delay_ns: i64) -> Result<(), Error>

Configure the inter packet delay to insert between each packet for the current stream channel. This can be used as a crude flow-control mechanism if the application or the network infrastructure cannot keep up with the packets coming from the device. Negative delay_ns is ignored. Read more
source§

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

Specifies the stream packet size, in bytes, to send on the selected channel for a GVSP transmitter or specifies the maximum packet size supported by a GVSP receiver. Read more
source§

fn gv_set_packet_size_adjustment(&self, adjustment: GvPacketSizeAdjustment)

Available on crate feature v0_8_3 only.
Sets the option for packet size adjustment that happens at stream object creation. Read more
source§

fn gv_set_persistent_ip<P, Q, R>( &self, ip: &P, mask: &Q, gateway: &R ) -> Result<(), Error>where P: IsA<InetAddress>, Q: IsA<InetAddressMask>, R: IsA<InetAddress>,

Available on crate feature v0_8_22 only.
source§

fn gv_set_persistent_ip_from_string( &self, ip: &str, mask: &str, gateway: &str ) -> Result<(), Error>

Available on crate feature v0_8_22 only.
source§

fn gv_set_stream_options(&self, options: GvStreamOption)

Sets the options used during stream object creation. These options mus be set before the call to arv_camera_create_stream(). Read more
source§

fn is_binning_available(&self) -> Result<bool, Error>

Returns Read more
source§

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

Available on crate feature v0_8_19 only.
source§

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

Available on crate feature v0_8_19 only.
source§

fn is_enumeration_entry_available( &self, feature: &str, entry: &str ) -> Result<(), Error>

Available on crate feature v0_8_17 only.
source§

fn is_exposure_auto_available(&self) -> Result<bool, Error>

Returns Read more
source§

fn is_exposure_time_available(&self) -> Result<bool, Error>

Returns Read more
source§

fn is_feature_available(&self, feature: &str) -> Result<bool, Error>

feature Read more
source§

fn is_frame_rate_available(&self) -> Result<bool, Error>

Returns Read more
source§

fn is_gain_auto_available(&self) -> Result<bool, Error>

Returns Read more
source§

fn is_gain_available(&self) -> Result<bool, Error>

Returns Read more
source§

fn is_gv_device(&self) -> bool

Returns Read more
source§

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

Available on crate feature v0_8_22 only.
source§

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

Available on crate feature v0_8_17 only.
source§

fn is_uv_device(&self) -> bool

Returns Read more
source§

fn set_access_check_policy(&self, policy: AccessCheckPolicy)

Available on crate feature v0_8_22 only.
source§

fn set_acquisition_mode(&self, value: AcquisitionMode) -> Result<(), Error>

source§

fn set_binning(&self, dx: i32, dy: i32) -> Result<(), Error>

Defines binning in both directions. Not all cameras support this feature. Negative dx or dy values are ignored. Read more
source§

fn set_black_level(&self, blacklevel: f64) -> Result<(), Error>

Available on crate feature v0_8_19 only.
source§

fn set_black_level_auto(&self, auto_mode: Auto) -> Result<(), Error>

Available on crate feature v0_8_19 only.
source§

fn set_boolean(&self, feature: &str, value: bool) -> Result<(), Error>

Set a boolean feature value. Read more
source§

fn set_chunk_mode(&self, is_active: bool) -> Result<(), Error>

Controls wether chunk data mode is active. When active, chunk data are appended to image data in Buffer. A ChunkParser must be used in order to extract chunk data. Read more
source§

fn set_chunk_state(&self, chunk: &str, is_enabled: bool) -> Result<(), Error>

Sets state of a chunk data. Chunk data are be embedded in Buffer only if chunk mode is active. Please see set_chunk_mode(). Read more
source§

fn set_chunks(&self, chunk_list: &str) -> Result<(), Error>

Convenience function for enabling a set of chunk data. Chunk mode is activated, or deactivated if chunk_list is None or empty. All chunk data not listed are disabled. Read more
source§

fn set_exposure_mode(&self, mode: ExposureMode) -> Result<(), Error>

source§

fn set_exposure_time(&self, exposure_time_us: f64) -> Result<(), Error>

Sets exposure time. User should take care to set a value compatible with the desired frame rate. Negative exposure_time_us is ignored. Read more
source§

fn set_exposure_time_auto(&self, auto_mode: Auto) -> Result<(), Error>

Configures automatic exposure feature. Read more
source§

fn set_float(&self, feature: &str, value: f64) -> Result<(), Error>

Set a float feature value. Read more
source§

fn set_frame_count(&self, frame_count: i64) -> Result<(), Error>

Sets the number of frames to capture in MultiFrame mode. Read more
source§

fn set_frame_rate(&self, frame_rate: f64) -> Result<(), Error>

Configures a fixed frame rate mode. Once acquisition start is triggered, the video stream will be acquired with the given frame rate. A negative or zero frame_rate value disables the frame rate limit. Read more
source§

fn set_gain(&self, gain: f64) -> Result<(), Error>

Sets the gain of the ADC converter. Negative gain is ignored. Read more
source§

fn set_gain_auto(&self, auto_mode: Auto) -> Result<(), Error>

Configures automatic gain feature. Read more
source§

fn set_integer(&self, feature: &str, value: i64) -> Result<(), Error>

Set an integer feature value. Read more
source§

fn set_pixel_format(&self, format: PixelFormat) -> Result<(), Error>

Defines pixel format. Read more
source§

fn set_pixel_format_from_string(&self, format: &str) -> Result<(), Error>

Defines pixel format described by a string. Read more
source§

fn set_range_check_policy(&self, policy: RangeCheckPolicy)

Available on crate feature v0_8_8 only.
source§

fn set_region( &self, x: i32, y: i32, width: i32, height: i32 ) -> Result<(), Error>

Defines the region of interest which will be transmitted in the video stream. Negative x or y values, or not strictly positive width or height values are ignored. Read more
source§

fn set_register_cache_policy(&self, policy: RegisterCachePolicy)

Available on crate feature v0_8_8 only.
Sets the Genicam register cache policy. Read more
source§

fn set_string(&self, feature: &str, value: &str) -> Result<(), Error>

Set an string feature value. Read more
source§

fn set_trigger(&self, source: &str) -> Result<(), Error>

Configures the camera in trigger mode. Typical values for source are “Line1” or “Line2”. See the camera documentation for the allowed values. Activation is set to rising edge. It can be changed by accessing the underlying device object. Read more
source§

fn set_trigger_source(&self, source: &str) -> Result<(), Error>

Sets the trigger source. This function doesn’t check if the camera is configured to actually use this source as a trigger. Read more
source§

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

Sends a software trigger command to self. The camera must be previously configured to use a software trigger, using set_trigger().
source§

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

Starts video stream acquisition.
source§

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

Stops video stream acquisition.
source§

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

Returns Read more
source§

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

Returns Read more
source§

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

Returns Read more
source§

fn uv_set_bandwidth(&self, bandwidth: u32) -> Result<(), Error>

Set the bandwith limit or, if bandwith is not strictly positive, disable the limit. Read more
source§

fn uv_set_usb_mode(&self, usb_mode: UvUsbMode)

Available on crate feature v0_8_17 only.
source§

impl<T> CameraExtManual for Twhere T: IsA<Camera>,

source§

impl<T> Cast for Twhere T: ObjectType,

source§

fn upcast<T>(self) -> Twhere T: ObjectType, Self: IsA<T>,

Upcasts an object to a superclass or interface T. Read more
source§

fn upcast_ref<T>(&self) -> &Twhere T: ObjectType, Self: IsA<T>,

Upcasts an object to a reference of its superclass or interface T. Read more
source§

fn downcast<T>(self) -> Result<T, Self>where T: ObjectType, Self: CanDowncast<T>,

Tries to downcast to a subclass or interface implementor T. Read more
source§

fn downcast_ref<T>(&self) -> Option<&T>where T: ObjectType, Self: CanDowncast<T>,

Tries to downcast to a reference of its subclass or interface implementor T. Read more
source§

fn dynamic_cast<T>(self) -> Result<T, Self>where T: ObjectType,

Tries to cast to an object of type T. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while upcast will do many checks at compile-time already. downcast will perform the same checks at runtime as dynamic_cast, but will also ensure some amount of compile-time safety. Read more
source§

fn dynamic_cast_ref<T>(&self) -> Option<&T>where T: ObjectType,

Tries to cast to reference to an object of type T. This handles upcasting, downcasting and casting between interface and interface implementors. All checks are performed at runtime, while downcast and upcast will do many checks at compile-time already. Read more
source§

unsafe fn unsafe_cast<T>(self) -> Twhere T: ObjectType,

Casts to T unconditionally. Read more
source§

unsafe fn unsafe_cast_ref<T>(&self) -> &Twhere T: ObjectType,

Casts to &T unconditionally. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,

source§

impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,

source§

impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,

source§

impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,

source§

impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,

source§

impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,

source§

impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,

source§

impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,

source§

impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,

source§

impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,

source§

impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,

source§

impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoClosureReturnValue for Twhere T: Into<Value>,

source§

impl<U> IsSubclassableExt for Uwhere U: IsClass + ParentClassIs,

source§

impl<T> ObjectExt for Twhere T: ObjectType,

source§

fn is<U>(&self) -> boolwhere U: StaticType,

Returns true if the object is an instance of (can be cast to) T.
source§

fn type_(&self) -> Type

Returns the type of the object.
source§

fn object_class(&self) -> &Class<Object>

Returns the ObjectClass of the object. Read more
source§

fn class(&self) -> &Class<T>where T: IsClass,

Returns the class of the object.
source§

fn class_of<U>(&self) -> Option<&Class<U>>where U: IsClass,

Returns the class of the object in the given type T. Read more
source§

fn interface<U>(&self) -> Option<InterfaceRef<'_, U>>where U: IsInterface,

Returns the interface T of the object. Read more
source§

fn set_property(&self, property_name: &str, value: impl Into<Value>)

Sets the property property_name of the object to value value. Read more
source§

fn set_property_from_value(&self, property_name: &str, value: &Value)

Sets the property property_name of the object to value value. Read more
source§

fn set_properties(&self, property_values: &[(&str, &dyn ToValue)])

Sets multiple properties of the object at once. Read more
source§

fn set_properties_from_value(&self, property_values: &[(&str, Value)])

Sets multiple properties of the object at once. Read more
source§

fn property<V>(&self, property_name: &str) -> Vwhere V: for<'b> FromValue<'b> + 'static,

Gets the property property_name of the object and cast it to the type V. Read more
source§

fn property_value(&self, property_name: &str) -> Value

Gets the property property_name of the object. Read more
source§

fn has_property(&self, property_name: &str, type_: Option<Type>) -> bool

Check if the object has a property property_name of the given type_. Read more
source§

fn property_type(&self, property_name: &str) -> Option<Type>

Get the type of the property property_name of this object. Read more
source§

fn find_property(&self, property_name: &str) -> Option<ParamSpec>

Get the ParamSpec of the property property_name of this object.
source§

fn list_properties(&self) -> PtrSlice<ParamSpec>

Return all ParamSpec of the properties of this object.
source§

fn freeze_notify(&self) -> PropertyNotificationFreezeGuard

Freeze all property notifications until the return guard object is dropped. Read more
source§

unsafe fn set_qdata<QD>(&self, key: Quark, value: QD)where QD: 'static,

Set arbitrary data on this object with the given key. Read more
source§

unsafe fn qdata<QD>(&self, key: Quark) -> Option<NonNull<QD>>where QD: 'static,

Return previously set arbitrary data of this object with the given key. Read more
source§

unsafe fn steal_qdata<QD>(&self, key: Quark) -> Option<QD>where QD: 'static,

Retrieve previously set arbitrary data of this object with the given key. Read more
source§

unsafe fn set_data<QD>(&self, key: &str, value: QD)where QD: 'static,

Set arbitrary data on this object with the given key. Read more
source§

unsafe fn data<QD>(&self, key: &str) -> Option<NonNull<QD>>where QD: 'static,

Return previously set arbitrary data of this object with the given key. Read more
source§

unsafe fn steal_data<QD>(&self, key: &str) -> Option<QD>where QD: 'static,

Retrieve previously set arbitrary data of this object with the given key. Read more
source§

fn block_signal(&self, handler_id: &SignalHandlerId)

Block a given signal handler. Read more
source§

fn unblock_signal(&self, handler_id: &SignalHandlerId)

Unblock a given signal handler.
source§

fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>)

Stop emission of the currently emitted signal.
source§

fn stop_signal_emission_by_name(&self, signal_name: &str)

Stop emission of the currently emitted signal by the (possibly detailed) signal name.
source§

fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static,

Connect to the signal signal_name on this object. Read more
source§

fn connect_id<F>( &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static,

Connect to the signal signal_id on this object. Read more
source§

fn connect_local<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static,

Connect to the signal signal_name on this object. Read more
source§

fn connect_local_id<F>( &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static,

Connect to the signal signal_id on this object. Read more
source§

unsafe fn connect_unsafe<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>,

Connect to the signal signal_name on this object. Read more
source§

unsafe fn connect_unsafe_id<F>( &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>,

Connect to the signal signal_id on this object. Read more
source§

fn connect_closure( &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId

Connect a closure to the signal signal_name on this object. Read more
source§

fn connect_closure_id( &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure ) -> SignalHandlerId

Connect a closure to the signal signal_id on this object. Read more
source§

fn watch_closure(&self, closure: &impl AsRef<Closure>)

Limits the lifetime of closure to the lifetime of the object. When the object’s reference count drops to zero, the closure will be invalidated. An invalidated closure will ignore any calls to invoke_with_values, or invoke when using Rust closures.
source§

fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere R: TryFromClosureReturnValue,

Emit signal by signal id. Read more
source§

fn emit_with_values(&self, signal_id: SignalId, args: &[Value]) -> Option<Value>

Same as Self::emit but takes Value for the arguments.
source§

fn emit_by_name<R>(&self, signal_name: &str, args: &[&dyn ToValue]) -> Rwhere R: TryFromClosureReturnValue,

Emit signal by its name. Read more
source§

fn emit_by_name_with_values( &self, signal_name: &str, args: &[Value] ) -> Option<Value>

Emit signal by its name. Read more
source§

fn emit_by_name_with_details<R>( &self, signal_name: &str, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue,

Emit signal by its name with details. Read more
source§

fn emit_by_name_with_details_and_values( &self, signal_name: &str, details: Quark, args: &[Value] ) -> Option<Value>

Emit signal by its name with details. Read more
source§

fn emit_with_details<R>( &self, signal_id: SignalId, details: Quark, args: &[&dyn ToValue] ) -> Rwhere R: TryFromClosureReturnValue,

Emit signal by signal id with details. Read more
source§

fn emit_with_details_and_values( &self, signal_id: SignalId, details: Quark, args: &[Value] ) -> Option<Value>

Emit signal by signal id with details. Read more
source§

fn disconnect(&self, handler_id: SignalHandlerId)

Disconnect a previously connected signal handler.
source§

fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + Send + Sync + 'static,

Connect to the notify signal of the object. Read more
source§

fn connect_notify_local<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + 'static,

Connect to the notify signal of the object. Read more
source§

unsafe fn connect_notify_unsafe<F>( &self, name: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec),

Connect to the notify signal of the object. Read more
source§

fn notify(&self, property_name: &str)

Notify that the given property has changed its value. Read more
source§

fn notify_by_pspec(&self, pspec: &ParamSpec)

Notify that the given property has changed its value. Read more
source§

fn downgrade(&self) -> WeakRef<T>

Downgrade this object to a weak reference.
source§

fn add_weak_ref_notify<F>(&self, f: F) -> WeakRefNotify<T>where F: FnOnce() + Send + 'static,

Add a callback to be notified when the Object is disposed.
source§

fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where F: FnOnce() + 'static,

Add a callback to be notified when the Object is disposed. Read more
source§

fn bind_property<'f, 't, O, 'a>( &'a self, source_property: &'a str, target: &'a O, target_property: &'a str ) -> BindingBuilder<'a, 'f, 't>where O: ObjectType,

Bind property source_property on this object to the target_property on the target object. Read more
source§

fn ref_count(&self) -> u32

Returns the strong reference count of this object.
source§

unsafe fn run_dispose(&self)

Runs the dispose mechanism of the object. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = mem::align_of::<T>()

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Property for Twhere T: HasParamSpec,

§

type Value = T

source§

impl<T> PropertyGet for Twhere T: HasParamSpec,

§

type Value = T

source§

fn get<R, F>(&self, f: F) -> Rwhere F: Fn(&<T as PropertyGet>::Value) -> R,

source§

impl<T> StaticTypeExt for Twhere T: StaticType,

source§

fn ensure_type()

Ensures that the type has been registered with the type system.
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToSendValue for Twhere T: Send + ToValue + ?Sized,

source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
source§

impl<T> ToString for Twhere T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T> TransparentType for Twhere T: TransparentPtrType,

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T> TryFromClosureReturnValue for Twhere T: for<'a> FromValue<'a> + StaticType + 'static,

source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<Super, Sub> CanDowncast<Sub> for Superwhere Super: IsA<Super>, Sub: IsA<Super>,

source§

impl<'a, T, C, E> FromValueOptional<'a> for Twhere T: FromValue<'a, Checker = C>, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>, E: Error + Send + 'static,