#[repr(transparent)]pub struct Camera { /* private fields */ }
Implementations§
source§impl Camera
impl Camera
sourcepub fn new(name: Option<&str>) -> Result<Camera, Error>
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
.
Trait Implementations§
source§impl HasParamSpec for Camera
impl HasParamSpec for Camera
source§impl Ord for Camera
impl Ord for Camera
source§impl<OT: ObjectType> PartialEq<OT> for Camera
impl<OT: ObjectType> PartialEq<OT> for Camera
source§impl<OT: ObjectType> PartialOrd<OT> for Camera
impl<OT: ObjectType> PartialOrd<OT> for Camera
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
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 moresource§impl StaticType for Camera
impl StaticType for Camera
source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Eq for Camera
impl Send for Camera
Auto Trait Implementations§
impl RefUnwindSafe for Camera
impl !Sync for Camera
impl Unpin for Camera
impl UnwindSafe for Camera
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
source§impl<O> CameraExt for Owhere
O: IsA<Camera>,
impl<O> CameraExt for Owhere O: IsA<Camera>,
source§fn acquisition(&self, timeout: u64) -> Result<Buffer, Error>
fn acquisition(&self, timeout: u64) -> Result<Buffer, Error>
Acquire one image buffer. Read more
source§fn are_chunks_available(&self) -> Result<(), Error>
fn are_chunks_available(&self) -> Result<(), Error>
Available on crate feature
v0_8_8
only.Returns Read more
source§fn create_chunk_parser(&self) -> Option<ChunkParser>
fn create_chunk_parser(&self) -> Option<ChunkParser>
source§fn dup_available_enumerations(
&self,
feature: &str
) -> Result<Vec<i64, Global>, Error>
fn dup_available_enumerations( &self, feature: &str ) -> Result<Vec<i64, Global>, Error>
Get all the available values of
feature
, as 64 bit integers. Read moresource§fn dup_available_enumerations_as_display_names(
&self,
feature: &str
) -> Result<Vec<GString, Global>, Error>
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 moresource§fn dup_available_enumerations_as_strings(
&self,
feature: &str
) -> Result<Vec<GString, Global>, Error>
fn dup_available_enumerations_as_strings( &self, feature: &str ) -> Result<Vec<GString, Global>, Error>
Get all the available values of
feature
, as strings. Read moresource§fn dup_available_pixel_formats(&self) -> Result<Vec<i64, Global>, Error>
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>
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>
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>
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>
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>
fn execute_command(&self, feature: &str) -> Result<(), Error>
Execute a Genicam command. Read more
source§fn acquisition_mode(&self) -> Result<AcquisitionMode, Error>
fn acquisition_mode(&self) -> Result<AcquisitionMode, Error>
Returns Read more
source§fn binning(&self) -> Result<(i32, i32), Error>
fn binning(&self) -> Result<(i32, i32), Error>
Retrieves binning in both directions. Read more
source§fn black_level_bounds(&self) -> Result<(f64, f64), Error>
fn black_level_bounds(&self) -> Result<(f64, f64), Error>
Available on crate feature
v0_8_19
only.source§fn chunk_mode(&self) -> Result<bool, Error>
fn chunk_mode(&self) -> Result<bool, Error>
Check wether chunk data mode is active. Please see
set_chunk_mode()
. Read moresource§fn chunk_state(&self, chunk: &str) -> Result<bool, Error>
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 moresource§fn device_serial_number(&self) -> Result<GString, Error>
fn device_serial_number(&self) -> Result<GString, Error>
Available on crate feature
v0_8_8
only.Returns Read more
source§fn exposure_time_bounds(&self) -> Result<(f64, f64), Error>
fn exposure_time_bounds(&self) -> Result<(f64, f64), Error>
Retrieves exposure time bounds, in µs. Read more
source§fn float_bounds(&self, feature: &str) -> Result<(f64, f64), Error>
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>
fn float_increment(&self, feature: &str) -> Result<f64, Error>
Available on crate feature
v0_8_16
only.source§fn frame_count_bounds(&self) -> Result<(i64, i64), Error>
fn frame_count_bounds(&self) -> Result<(i64, i64), Error>
Retrieves allowed range for frame count. Read more
source§fn frame_rate_bounds(&self) -> Result<(f64, f64), Error>
fn frame_rate_bounds(&self) -> Result<(f64, f64), Error>
Retrieves allowed range for framerate. Read more
source§fn height_bounds(&self) -> Result<(i32, i32), Error>
fn height_bounds(&self) -> Result<(i32, i32), Error>
Retrieves the valid range for image height. Read more
source§fn integer_bounds(&self, feature: &str) -> Result<(i64, i64), Error>
fn integer_bounds(&self, feature: &str) -> Result<(i64, i64), Error>
Retrieves integer feature bounds. Read more
source§fn payload(&self) -> Result<u32, Error>
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>
fn pixel_format(&self) -> Result<PixelFormat, Error>
Returns Read more
source§fn pixel_format_as_string(&self) -> Result<GString, Error>
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>
fn region(&self) -> Result<(i32, i32, i32, i32), Error>
Retrieves the current region of interest. Read more
source§fn trigger_source(&self) -> Result<GString, Error>
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 width_bounds(&self) -> Result<(i32, i32), Error>
fn width_bounds(&self) -> Result<(i32, i32), Error>
Retrieves the valid range for image width. Read more
source§fn x_binning_bounds(&self) -> Result<(i32, i32), Error>
fn x_binning_bounds(&self) -> Result<(i32, i32), Error>
Retrieves the valid range for image horizontal binning. Read more
source§fn x_offset_bounds(&self) -> Result<(i32, i32), Error>
fn x_offset_bounds(&self) -> Result<(i32, i32), Error>
Retrieves the valid range for image horizontal offset. Read more
source§fn y_binning_bounds(&self) -> Result<(i32, i32), Error>
fn y_binning_bounds(&self) -> Result<(i32, i32), Error>
Retrieves the valid range for image vertical binning. Read more
source§fn y_offset_bounds(&self) -> Result<(i32, i32), Error>
fn y_offset_bounds(&self) -> Result<(i32, i32), Error>
Retrieves the valid range for image vertical offset. Read more
source§fn gv_auto_packet_size(&self) -> Result<(), Error>
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_ip_configuration_mode(&self) -> Result<GvIpConfigurationMode, Error>
fn gv_get_ip_configuration_mode(&self) -> Result<GvIpConfigurationMode, Error>
Available on crate feature
v0_8_22
only.source§fn gv_get_persistent_ip(
&self
) -> Result<(InetAddress, InetAddressMask, InetAddress), Error>
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>
fn gv_select_stream_channel(&self, channel_id: i32) -> Result<(), Error>
Select the current stream channel. Negative
channel_id
is ignored. Read moresource§fn gv_set_ip_configuration_mode(
&self,
mode: GvIpConfigurationMode
) -> Result<(), Error>
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>
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 moresource§fn gv_set_packet_size(&self, packet_size: i32) -> Result<(), Error>
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)
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>,
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>
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)
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 moresource§fn is_black_level_auto_available(&self) -> Result<(), Error>
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>
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>
fn is_enumeration_entry_available( &self, feature: &str, entry: &str ) -> Result<(), Error>
Available on crate feature
v0_8_17
only.source§fn is_gv_device(&self) -> bool
fn is_gv_device(&self) -> bool
Returns Read more
source§fn is_region_offset_available(&self) -> Result<(), Error>
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>
fn is_software_trigger_supported(&self) -> Result<(), Error>
Available on crate feature
v0_8_17
only.source§fn is_uv_device(&self) -> bool
fn is_uv_device(&self) -> bool
Returns Read more
source§fn set_access_check_policy(&self, policy: AccessCheckPolicy)
fn set_access_check_policy(&self, policy: AccessCheckPolicy)
Available on crate feature
v0_8_22
only.fn set_acquisition_mode(&self, value: AcquisitionMode) -> Result<(), Error>
source§fn set_binning(&self, dx: i32, dy: i32) -> Result<(), Error>
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 moresource§fn set_black_level(&self, blacklevel: f64) -> Result<(), Error>
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>
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>
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>
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 moresource§fn set_chunk_state(&self, chunk: &str, is_enabled: bool) -> Result<(), Error>
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 morefn set_exposure_mode(&self, mode: ExposureMode) -> Result<(), Error>
source§fn set_exposure_time(&self, exposure_time_us: f64) -> Result<(), Error>
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 moresource§fn set_exposure_time_auto(&self, auto_mode: Auto) -> Result<(), Error>
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>
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>
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>
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 moresource§fn set_gain(&self, gain: f64) -> Result<(), Error>
fn set_gain(&self, gain: f64) -> Result<(), Error>
Sets the gain of the ADC converter. Negative
gain
is ignored. Read moresource§fn set_gain_auto(&self, auto_mode: Auto) -> Result<(), Error>
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>
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>
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>
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)
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>
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 moresource§fn set_register_cache_policy(&self, policy: RegisterCachePolicy)
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>
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>
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>
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>
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 uv_set_bandwidth(&self, bandwidth: u32) -> Result<(), Error>
fn uv_set_bandwidth(&self, bandwidth: u32) -> Result<(), Error>
Set the bandwith limit or, if
bandwith
is not strictly positive, disable the limit. Read moresource§fn uv_set_usb_mode(&self, usb_mode: UvUsbMode)
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>,
impl<T> CameraExtManual for Twhere T: IsA<Camera>,
source§impl<T> Cast for Twhere
T: ObjectType,
impl<T> Cast for Twhere T: ObjectType,
source§fn upcast<T>(self) -> Twhere
T: ObjectType,
Self: IsA<T>,
fn upcast<T>(self) -> Twhere T: ObjectType, Self: IsA<T>,
Upcasts an object to a superclass or interface
T
. Read moresource§fn upcast_ref<T>(&self) -> &Twhere
T: ObjectType,
Self: IsA<T>,
fn upcast_ref<T>(&self) -> &Twhere T: ObjectType, Self: IsA<T>,
Upcasts an object to a reference of its superclass or interface
T
. Read moresource§fn downcast<T>(self) -> Result<T, Self>where
T: ObjectType,
Self: CanDowncast<T>,
fn downcast<T>(self) -> Result<T, Self>where T: ObjectType, Self: CanDowncast<T>,
Tries to downcast to a subclass or interface implementor
T
. Read moresource§fn downcast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Self: CanDowncast<T>,
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 moresource§fn dynamic_cast<T>(self) -> Result<T, Self>where
T: ObjectType,
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 moresource§fn dynamic_cast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
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 moresource§unsafe fn unsafe_cast<T>(self) -> Twhere
T: ObjectType,
unsafe fn unsafe_cast<T>(self) -> Twhere T: ObjectType,
Casts to
T
unconditionally. Read moresource§unsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
unsafe fn unsafe_cast_ref<T>(&self) -> &Twhere T: ObjectType,
Casts to
&T
unconditionally. Read moresource§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
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>,
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>,
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>,
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>,
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>,
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>,
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>,
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>,
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>,
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>,
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>,
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> IntoClosureReturnValue for Twhere
T: Into<Value>,
impl<T> IntoClosureReturnValue for Twhere T: Into<Value>,
fn into_closure_return_value(self) -> Option<Value>
source§impl<U> IsSubclassableExt for Uwhere
U: IsClass + ParentClassIs,
impl<U> IsSubclassableExt for Uwhere U: IsClass + ParentClassIs,
fn parent_class_init<T>(class: &mut Class<U>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>,
fn parent_instance_init<T>(instance: &mut InitializingObject<T>)where T: ObjectSubclass, <U as ParentClassIs>::Parent: IsSubclassable<T>,
source§impl<T> ObjectExt for Twhere
T: ObjectType,
impl<T> ObjectExt for Twhere T: ObjectType,
source§fn is<U>(&self) -> boolwhere
U: StaticType,
fn is<U>(&self) -> boolwhere U: StaticType,
Returns
true
if the object is an instance of (can be cast to) T
.source§fn object_class(&self) -> &Class<Object>
fn object_class(&self) -> &Class<Object>
Returns the
ObjectClass
of the object. Read moresource§fn class_of<U>(&self) -> Option<&Class<U>>where
U: IsClass,
fn class_of<U>(&self) -> Option<&Class<U>>where U: IsClass,
Returns the class of the object in the given type
T
. Read moresource§fn interface<U>(&self) -> Option<InterfaceRef<'_, U>>where
U: IsInterface,
fn interface<U>(&self) -> Option<InterfaceRef<'_, U>>where U: IsInterface,
Returns the interface
T
of the object. Read moresource§fn set_property_from_value(&self, property_name: &str, value: &Value)
fn set_property_from_value(&self, property_name: &str, value: &Value)
source§fn set_properties(&self, property_values: &[(&str, &dyn ToValue)])
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)])
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,
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 moresource§fn property_value(&self, property_name: &str) -> Value
fn property_value(&self, property_name: &str) -> Value
Gets the property
property_name
of the object. Read moresource§fn property_type(&self, property_name: &str) -> Option<Type>
fn property_type(&self, property_name: &str) -> Option<Type>
Get the type of the property
property_name
of this object. Read moresource§fn find_property(&self, property_name: &str) -> Option<ParamSpec>
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>
fn list_properties(&self) -> PtrSlice<ParamSpec>
Return all
ParamSpec
of the properties of this object.source§fn freeze_notify(&self) -> PropertyNotificationFreezeGuard
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,
unsafe fn set_qdata<QD>(&self, key: Quark, value: QD)where QD: 'static,
Set arbitrary data on this object with the given
key
. Read moresource§unsafe fn qdata<QD>(&self, key: Quark) -> Option<NonNull<QD>>where
QD: 'static,
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 moresource§unsafe fn steal_qdata<QD>(&self, key: Quark) -> Option<QD>where
QD: 'static,
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 moresource§unsafe fn set_data<QD>(&self, key: &str, value: QD)where
QD: 'static,
unsafe fn set_data<QD>(&self, key: &str, value: QD)where QD: 'static,
Set arbitrary data on this object with the given
key
. Read moresource§unsafe fn data<QD>(&self, key: &str) -> Option<NonNull<QD>>where
QD: 'static,
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 moresource§unsafe fn steal_data<QD>(&self, key: &str) -> Option<QD>where
QD: 'static,
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 moresource§fn block_signal(&self, handler_id: &SignalHandlerId)
fn block_signal(&self, handler_id: &SignalHandlerId)
Block a given signal handler. Read more
source§fn unblock_signal(&self, handler_id: &SignalHandlerId)
fn unblock_signal(&self, handler_id: &SignalHandlerId)
Unblock a given signal handler.
source§fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>)
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)
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,
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 moresource§fn connect_id<F>(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
callback: F
) -> SignalHandlerIdwhere
F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static,
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 moresource§fn connect_local<F>(
&self,
signal_name: &str,
after: bool,
callback: F
) -> SignalHandlerIdwhere
F: Fn(&[Value]) -> Option<Value> + 'static,
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 moresource§fn connect_local_id<F>(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
callback: F
) -> SignalHandlerIdwhere
F: Fn(&[Value]) -> Option<Value> + 'static,
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 moresource§unsafe fn connect_unsafe<F>(
&self,
signal_name: &str,
after: bool,
callback: F
) -> SignalHandlerIdwhere
F: Fn(&[Value]) -> Option<Value>,
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 moresource§unsafe fn connect_unsafe_id<F>(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
callback: F
) -> SignalHandlerIdwhere
F: Fn(&[Value]) -> Option<Value>,
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 moresource§fn connect_closure(
&self,
signal_name: &str,
after: bool,
closure: RustClosure
) -> SignalHandlerId
fn connect_closure( &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId
Connect a closure to the signal
signal_name
on this object. Read moresource§fn connect_closure_id(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
closure: RustClosure
) -> SignalHandlerId
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 moresource§fn watch_closure(&self, closure: &impl AsRef<Closure>)
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,
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>
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,
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>
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,
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>
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,
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>
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)
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,
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 moresource§fn connect_notify_local<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere
F: Fn(&T, &ParamSpec) + 'static,
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 moresource§unsafe fn connect_notify_unsafe<F>(
&self,
name: Option<&str>,
f: F
) -> SignalHandlerIdwhere
F: Fn(&T, &ParamSpec),
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 moresource§fn notify(&self, property_name: &str)
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)
fn notify_by_pspec(&self, pspec: &ParamSpec)
Notify that the given property has changed its value. Read more
source§fn add_weak_ref_notify<F>(&self, f: F) -> WeakRefNotify<T>where
F: FnOnce() + Send + 'static,
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,
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,
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,
source§unsafe fn run_dispose(&self)
unsafe fn run_dispose(&self)
Runs the dispose mechanism of the object. Read more
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> PropertyGet for Twhere
T: HasParamSpec,
impl<T> PropertyGet for Twhere T: HasParamSpec,
source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere T: StaticType,
source§fn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
source§impl<T> ToSendValue for Twhere
T: Send + ToValue + ?Sized,
impl<T> ToSendValue for Twhere T: Send + ToValue + ?Sized,
source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.