[−]Struct gstreamer_net::NtpClock
pub struct NtpClock(_, _);
Methods
impl NtpClock
[src][−]
pub fn new(
name: Option<&str>,
remote_address: &str,
remote_port: i32,
base_time: ClockTime
) -> NtpClock
[src][−]
name: Option<&str>,
remote_address: &str,
remote_port: i32,
base_time: ClockTime
) -> NtpClock
Create a new NtpClock
that will report the time provided by
the NTPv4 server on remote_address
and remote_port
.
name
a name for the clock
remote_address
the address or hostname of the remote clock provider
remote_port
the port of the remote clock provider
base_time
initial time of the clock
Returns
a new gst::Clock
that receives a time from the remote
clock.
Trait Implementations
impl Clone for NtpClock
[+]
fn clone(&self) -> NtpClock
[−]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src][−]
Performs copy-assignment from source
. Read more
impl Debug for NtpClock
[+]
fn fmt(&self, f: &mut Formatter) -> Result
[−]
Formats the value using the given formatter. Read more
impl Eq for NtpClock
impl Hash for NtpClock
[+]
fn hash<__H: Hasher>(&self, state: &mut __H)
[−]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src][−]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl IsA<Clock> for NtpClock
impl IsA<NetClientClock> for NtpClock
impl IsA<Object> for NtpClock
impl Ord for NtpClock
[+]
fn cmp(&self, other: &NtpClock) -> Ordering
[−]
This method returns an [Ordering
] between self
and other
. Read more
#[must_use]
fn max(self, other: Self) -> Self
1.21.0[src][−]
Compares and returns the maximum of two values. Read more
#[must_use]
fn min(self, other: Self) -> Self
1.21.0[src][−]
Compares and returns the minimum of two values. Read more
#[must_use]
fn clamp(self, min: Self, max: Self) -> Self
[src][−]
clamp
)Restrict a value to a certain interval. Read more
impl<T: ObjectType> PartialEq<T> for NtpClock
[+]
fn eq(&self, other: &T) -> bool
[−]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src][−]
This method tests for !=
.
impl<T: ObjectType> PartialOrd<T> for NtpClock
[+]
fn partial_cmp(&self, other: &T) -> Option<Ordering>
[−]
This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src][−]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src][−]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src][−]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src][−]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Send for NtpClock
[src]
impl StaticType for NtpClock
[+]
impl Sync for NtpClock
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
[src][−]
Gets the TypeId
of self
. Read more
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
fn borrow(&self) -> &T
[src][−]
Immutably borrows from an owned value. Read more
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src][−]
Mutably borrows from an owned value. Read more
impl<Super, Sub> CanDowncast<Sub> for Super where
Sub: IsA<Super>,
Super: IsA<Super>,
[src]
Sub: IsA<Super>,
Super: IsA<Super>,
impl<T> Cast for T where
T: ObjectType,
[src][+]
T: ObjectType,
fn upcast<T>(self) -> T where
Self: IsA<T>,
T: ObjectType,
[src][−]
Self: IsA<T>,
T: ObjectType,
Upcasts an object to a superclass or interface T
. Read more
fn upcast_ref<T>(&self) -> &T where
Self: IsA<T>,
T: ObjectType,
[src][−]
Self: IsA<T>,
T: ObjectType,
Upcasts an object to a reference of its superclass or interface T
. Read more
fn downcast<T>(self) -> Result<T, Self> where
Self: CanDowncast<T>,
T: ObjectType,
[src][−]
Self: CanDowncast<T>,
T: ObjectType,
Tries to downcast to a subclass or interface implementor T
. Read more
fn downcast_ref<T>(&self) -> Option<&T> where
Self: CanDowncast<T>,
T: ObjectType,
[src][−]
Self: CanDowncast<T>,
T: ObjectType,
Tries to downcast to a reference of its subclass or interface implementor T
. Read more
fn dynamic_cast<T>(self) -> Result<T, Self> where
T: ObjectType,
[src][−]
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 downcast
and upcast
will do many checks at compile-time already. Read more
fn dynamic_cast_ref<T>(&self) -> Option<&T> where
T: ObjectType,
[src][−]
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
unsafe fn unsafe_cast<T>(self) -> T where
T: ObjectType,
[src][−]
T: ObjectType,
Casts to T
unconditionally. Read more
unsafe fn unsafe_cast_ref<T>(&self) -> &T where
T: ObjectType,
[src][−]
T: ObjectType,
Casts to &T
unconditionally. Read more
impl<O> ClockExt for O where
O: IsA<Clock>,
[src][+]
O: IsA<Clock>,
fn add_observation(&self, slave: ClockTime, master: ClockTime) -> Option<f64>
[src][−]
The time master
of the master clock and the time slave
of the slave clock are added to the list of observations. If enough observations are available, a linear regression algorithm is run on the observations and self
is recalibrated. Read more
fn add_observation_unapplied(
&self,
slave: ClockTime,
master: ClockTime
) -> Option<(f64, ClockTime, ClockTime, ClockTime, ClockTime)>
[src][−]
&self,
slave: ClockTime,
master: ClockTime
) -> Option<(f64, ClockTime, ClockTime, ClockTime, ClockTime)>
Add a clock observation to the internal slaving algorithm the same as ClockExt::add_observation
, and return the result of the master clock estimation, without updating the internal calibration. Read more
fn adjust_unlocked(&self, internal: ClockTime) -> ClockTime
[src][−]
Converts the given internal
clock time to the external time, adjusting for the rate and reference time set with ClockExt::set_calibration
and making sure that the returned time is increasing. This function should be called with the clock's OBJECT_LOCK held and is mainly used by clock subclasses. Read more
fn get_calibration(&self) -> (ClockTime, ClockTime, ClockTime, ClockTime)
[src][−]
Gets the internal rate and reference time of self
. See ClockExt::set_calibration
for more information. Read more
fn get_internal_time(&self) -> ClockTime
[src][−]
Gets the current internal time of the given clock. The time is returned unadjusted for the offset and the rate. Read more
fn get_master(&self) -> Option<Clock>
[src][−]
Get the master clock that self
is slaved to or None
when the clock is not slaved to any master clock. Read more
fn get_resolution(&self) -> ClockTime
[src][−]
Get the accuracy of the clock. The accuracy of the clock is the granularity of the values returned by ClockExt::get_time
. Read more
fn get_time(&self) -> ClockTime
[src][−]
Gets the current time of the given clock. The time is always monotonically increasing and adjusted according to the current offset and rate. Read more
fn get_timeout(&self) -> ClockTime
[src][−]
Get the amount of time that master and slave clocks are sampled. Read more
fn is_synced(&self) -> bool
[src][−]
Checks if the clock is currently synced. Read more
fn set_calibration(
&self,
internal: ClockTime,
external: ClockTime,
rate_num: ClockTime,
rate_denom: ClockTime
)
[src][−]
&self,
internal: ClockTime,
external: ClockTime,
rate_num: ClockTime,
rate_denom: ClockTime
)
Adjusts the rate and time of self
. A rate of 1/1 is the normal speed of the clock. Values bigger than 1/1 make the clock go faster. Read more
fn set_master<P>(&self, master: Option<&P>) -> Result<(), BoolError> where
P: IsA<Clock>,
[src][−]
P: IsA<Clock>,
Set master
as the master clock for self
. self
will be automatically calibrated so that ClockExt::get_time
reports the same time as the master clock. Read more
fn set_resolution(&self, resolution: ClockTime) -> ClockTime
[src][−]
Set the accuracy of the clock. Some clocks have the possibility to operate with different accuracy at the expense of more resource usage. There is normally no need to change the default resolution of a clock. The resolution of a clock can only be changed if the clock has the ClockFlags::CanSetResolution
flag set. ## resolution
The resolution to set Read more
fn set_synced(&self, synced: bool)
[src][−]
Sets self
to synced and emits the GstClock::synced signal, and wakes up any thread waiting in ClockExt::wait_for_sync
. Read more
fn set_timeout(&self, timeout: ClockTime)
[src][−]
Set the amount of time, in nanoseconds, to sample master and slave clocks ## timeout
a timeout Read more
fn unadjust_unlocked(&self, external: ClockTime) -> ClockTime
[src][−]
Converts the given external
clock time to the internal time of self
, using the rate and reference time set with ClockExt::set_calibration
. This function should be called with the clock's OBJECT_LOCK held and is mainly used by clock subclasses. Read more
fn wait_for_sync(&self, timeout: ClockTime) -> Result<(), BoolError>
[src][−]
Waits until self
is synced for reporting the current time. If timeout
is GST_CLOCK_TIME_NONE
it will wait forever, otherwise it will time out after timeout
nanoseconds. Read more
fn get_property_window_size(&self) -> i32
[src]
fn set_property_window_size(&self, window_size: i32)
[src]
fn get_property_window_threshold(&self) -> i32
[src]
fn set_property_window_threshold(&self, window_threshold: i32)
[src]
fn connect_synced<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Send + Sync + Fn(&O, bool),
[src][−]
F: 'static + Send + Sync + Fn(&O, bool),
Signaled on clocks with GST_CLOCK_FLAG_NEEDS_STARTUP_SYNC set once the clock is synchronized, or when it completely lost synchronization. This signal will not be emitted on clocks without the flag. Read more
fn connect_property_timeout_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Send + Sync + Fn(&O),
[src]
F: 'static + Send + Sync + Fn(&O),
fn connect_property_window_size_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Send + Sync + Fn(&O),
[src]
F: 'static + Send + Sync + Fn(&O),
fn connect_property_window_threshold_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Send + Sync + Fn(&O),
[src]
F: 'static + Send + Sync + Fn(&O),
impl<O> ClockExtManual for O where
O: IsA<Clock>,
[src][+]
O: IsA<Clock>,
fn new_periodic_id(
&self,
start_time: ClockTime,
interval: ClockTime
) -> Result<ClockId, BoolError>
[src]
&self,
start_time: ClockTime,
interval: ClockTime
) -> Result<ClockId, BoolError>
fn periodic_id_reinit(
&self,
id: &ClockId,
start_time: ClockTime,
interval: ClockTime
) -> Result<(), BoolError>
[src]
&self,
id: &ClockId,
start_time: ClockTime,
interval: ClockTime
) -> Result<(), BoolError>
fn new_single_shot_id(&self, time: ClockTime) -> Result<ClockId, BoolError>
[src]
fn single_shot_id_reinit(
&self,
id: &ClockId,
time: ClockTime
) -> Result<(), BoolError>
[src]
&self,
id: &ClockId,
time: ClockTime
) -> Result<(), BoolError>
fn set_clock_flags(&self, flags: ClockFlags)
[src]
fn unset_clock_flags(&self, flags: ClockFlags)
[src]
fn get_clock_flags(&self) -> ClockFlags
[src]
impl<T> From<T> for T
[src][+]
impl<O> GObjectExtManualGst for O where
O: IsA<Object>,
[src][+]
O: IsA<Object>,
fn set_property_from_str(&self, name: &str, value: &str)
[src]
impl<O> GstObjectExt for O where
O: IsA<Object>,
[src][+]
O: IsA<Object>,
fn default_error(&self, error: &Error, debug: Option<&str>)
[src][−]
A default error function that uses g_printerr
to display the error message and the optional debug string.. Read more
fn get_control_rate(&self) -> ClockTime
[src][−]
Obtain the control-rate for this self
. Audio processing Element
objects will use this rate to sub-divide their processing loop and call GstObjectExt::sync_values
in between. The length of the processing segment should be up to control
-rate nanoseconds. Read more
fn get_name(&self) -> GString
[src][−]
Returns a copy of the name of self
. Caller should g_free
the return value after usage. For a nameless object, this returns None
, which you can safely g_free
as well. Read more
fn get_parent(&self) -> Option<Object>
[src][−]
Returns the parent of self
. This function increases the refcount of the parent object so you should GstObjectExt::unref
it after usage. Read more
fn get_path_string(&self) -> GString
[src][−]
Generates a string describing the path of self
in the object hierarchy. Only useful (or used) for debugging. Read more
fn has_active_control_bindings(&self) -> bool
[src][−]
Check if the self
has active controlled properties. Read more
fn has_ancestor<P>(&self, ancestor: &P) -> bool where
P: IsA<Object>,
[src][−]
P: IsA<Object>,
Check if self
has an ancestor ancestor
somewhere up in the hierarchy. One can e.g. check if a Element
is inside a Pipeline
. Read more
fn has_as_ancestor<P>(&self, ancestor: &P) -> bool where
P: IsA<Object>,
[src][−]
P: IsA<Object>,
Check if self
has an ancestor ancestor
somewhere up in the hierarchy. One can e.g. check if a Element
is inside a Pipeline
. ## ancestor
a Object
to check as ancestor Read more
fn has_as_parent<P>(&self, parent: &P) -> bool where
P: IsA<Object>,
[src][−]
P: IsA<Object>,
Check if parent
is the parent of self
. E.g. a Element
can check if it owns a given Pad
. ## parent
a Object
to check as parent Read more
fn set_control_binding_disabled(&self, property_name: &str, disabled: bool)
[src][−]
This function is used to disable the control bindings on a property for some time, i.e. GstObjectExt::sync_values
will do nothing for the property. ## property_name
property to disable ## disabled
boolean that specifies whether to disable the controller or not. Read more
fn set_control_bindings_disabled(&self, disabled: bool)
[src][−]
This function is used to disable all controlled properties of the self
for some time, i.e. GstObjectExt::sync_values
will do nothing. ## disabled
boolean that specifies whether to disable the controller or not. Read more
fn set_control_rate(&self, control_rate: ClockTime)
[src][−]
Change the control-rate for this self
. Audio processing Element
objects will use this rate to sub-divide their processing loop and call GstObjectExt::sync_values
in between. The length of the processing segment should be up to control
-rate nanoseconds. Read more
fn set_name(&self, name: &str) -> Result<(), BoolError>
[src][−]
Sets the name of self
, or gives self
a guaranteed unique name (if name
is None
). This function makes a copy of the provided name, so the caller retains ownership of the name it sent. ## name
new name of object Read more
fn set_parent<P>(&self, parent: &P) -> Result<(), BoolError> where
P: IsA<Object>,
[src][−]
P: IsA<Object>,
Sets the parent of self
to parent
. The object's reference count will be incremented, and any floating reference will be removed (see Object::ref_sink
). ## parent
new parent of object Read more
fn suggest_next_sync(&self) -> ClockTime
[src][−]
Returns a suggestion for timestamps where buffers should be split to get best controller results. Read more
fn sync_values(&self, timestamp: ClockTime) -> Result<(), BoolError>
[src][−]
Sets the properties of the object, according to the GstControlSources
that (maybe) handle them and for the given timestamp. Read more
fn unparent(&self)
[src][−]
Clear the parent of self
, removing the associated reference. This function decreases the refcount of self
. Read more
fn connect_property_name_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Send + Sync + Fn(&O),
[src]
F: 'static + Send + Sync + Fn(&O),
fn connect_property_parent_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Send + Sync + Fn(&O),
[src]
F: 'static + Send + Sync + Fn(&O),
impl<O> GstObjectExtManual for O where
O: IsA<Object>,
[src][+]
O: IsA<Object>,
fn connect_deep_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerId where
F: 'static + Send + Sync + Fn(&O, &Object, &ParamSpec),
[src]
F: 'static + Send + Sync + Fn(&O, &Object, &ParamSpec),
fn set_object_flags(&self, flags: ObjectFlags)
[src]
fn unset_object_flags(&self, flags: ObjectFlags)
[src]
fn get_object_flags(&self) -> ObjectFlags
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ObjectExt for T where
T: ObjectType,
[src][+]
T: ObjectType,
fn is<U>(&self) -> bool where
U: StaticType,
[src][−]
U: StaticType,
Returns true
if the object is an instance of (can be cast to) T
.
fn get_type(&self) -> Type
[src]
fn get_object_class(&self) -> &ObjectClass
[src]
fn set_property<'a, N>(
&self,
property_name: N,
value: &dyn ToValue
) -> Result<(), BoolError> where
N: Into<&'a str>,
[src]
&self,
property_name: N,
value: &dyn ToValue
) -> Result<(), BoolError> where
N: Into<&'a str>,
fn get_property<'a, N>(&self, property_name: N) -> Result<Value, BoolError> where
N: Into<&'a str>,
[src]
N: Into<&'a str>,
fn block_signal(&self, handler_id: &SignalHandlerId)
[src]
fn unblock_signal(&self, handler_id: &SignalHandlerId)
[src]
fn stop_signal_emission(&self, signal_name: &str)
[src]
fn disconnect(&self, handler_id: SignalHandlerId)
[src]
fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerId where
F: 'static + Send + Sync + Fn(&T, &ParamSpec),
[src]
F: 'static + Send + Sync + Fn(&T, &ParamSpec),
unsafe fn connect_notify_unsafe<F>(
&self,
name: Option<&str>,
f: F
) -> SignalHandlerId where
F: Fn(&T, &ParamSpec),
[src]
&self,
name: Option<&str>,
f: F
) -> SignalHandlerId where
F: Fn(&T, &ParamSpec),
fn notify<'a, N>(&self, property_name: N) where
N: Into<&'a str>,
[src]
N: Into<&'a str>,
fn notify_by_pspec(&self, pspec: &ParamSpec)
[src]
fn has_property<'a, N>(
&self,
property_name: N,
type_: Option<Type>
) -> Result<(), BoolError> where
N: Into<&'a str>,
[src]
&self,
property_name: N,
type_: Option<Type>
) -> Result<(), BoolError> where
N: Into<&'a str>,
fn get_property_type<'a, N>(&self, property_name: N) -> Option<Type> where
N: Into<&'a str>,
[src]
N: Into<&'a str>,
fn find_property<'a, N>(&self, property_name: N) -> Option<ParamSpec> where
N: Into<&'a str>,
[src]
N: Into<&'a str>,
fn list_properties(&self) -> Vec<ParamSpec>
[src]
fn connect<'a, N, F>(
&self,
signal_name: N,
after: bool,
callback: F
) -> Result<SignalHandlerId, BoolError> where
F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static,
N: Into<&'a str>,
[src]
&self,
signal_name: N,
after: bool,
callback: F
) -> Result<SignalHandlerId, BoolError> where
F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static,
N: Into<&'a str>,
fn connect_local<'a, N, F>(
&self,
signal_name: N,
after: bool,
callback: F
) -> Result<SignalHandlerId, BoolError> where
F: Fn(&[Value]) -> Option<Value> + 'static,
N: Into<&'a str>,
[src]
&self,
signal_name: N,
after: bool,
callback: F
) -> Result<SignalHandlerId, BoolError> where
F: Fn(&[Value]) -> Option<Value> + 'static,
N: Into<&'a str>,
unsafe fn connect_unsafe<'a, N, F>(
&self,
signal_name: N,
after: bool,
callback: F
) -> Result<SignalHandlerId, BoolError> where
F: Fn(&[Value]) -> Option<Value>,
N: Into<&'a str>,
[src]
&self,
signal_name: N,
after: bool,
callback: F
) -> Result<SignalHandlerId, BoolError> where
F: Fn(&[Value]) -> Option<Value>,
N: Into<&'a str>,
fn emit<'a, N>(
&self,
signal_name: N,
args: &[&dyn ToValue]
) -> Result<Option<Value>, BoolError> where
N: Into<&'a str>,
[src]
&self,
signal_name: N,
args: &[&dyn ToValue]
) -> Result<Option<Value>, BoolError> where
N: Into<&'a str>,
fn downgrade(&self) -> WeakRef<T>
[src]
fn bind_property<'a, O, N, M>(
&'a self,
source_property: N,
target: &'a O,
target_property: M
) -> BindingBuilder<'a> where
M: Into<&'a str>,
N: Into<&'a str>,
O: ObjectType,
[src]
&'a self,
source_property: N,
target: &'a O,
target_property: M
) -> BindingBuilder<'a> where
M: Into<&'a str>,
N: Into<&'a str>,
O: ObjectType,
fn ref_count(&self) -> u32
[src]
impl<'a, T> ToGlibContainerFromSlice<'a, *const GList> for T where
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
[src][+]
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
type Storage = (Option<List>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)
fn to_glib_none_from_slice(
t: &'a [T]
) -> (*const GList, <T as ToGlibContainerFromSlice<'a, *const GList>>::Storage)
[src]
t: &'a [T]
) -> (*const GList, <T as ToGlibContainerFromSlice<'a, *const GList>>::Storage)
fn to_glib_container_from_slice(
_t: &'a [T]
) -> (*const GList, <T as ToGlibContainerFromSlice<'a, *const GList>>::Storage)
[src]
_t: &'a [T]
) -> (*const GList, <T as ToGlibContainerFromSlice<'a, *const GList>>::Storage)
fn to_glib_full_from_slice(_t: &[T]) -> *const GList
[src]
impl<'a, T> ToGlibContainerFromSlice<'a, *const GPtrArray> for T where
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
[src][+]
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
type Storage = (Option<PtrArray>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)
fn to_glib_none_from_slice(
t: &'a [T]
) -> (*const GPtrArray, <T as ToGlibContainerFromSlice<'a, *const GPtrArray>>::Storage)
[src]
t: &'a [T]
) -> (*const GPtrArray, <T as ToGlibContainerFromSlice<'a, *const GPtrArray>>::Storage)
fn to_glib_container_from_slice(
_t: &'a [T]
) -> (*const GPtrArray, <T as ToGlibContainerFromSlice<'a, *const GPtrArray>>::Storage)
[src]
_t: &'a [T]
) -> (*const GPtrArray, <T as ToGlibContainerFromSlice<'a, *const GPtrArray>>::Storage)
fn to_glib_full_from_slice(_t: &[T]) -> *const GPtrArray
[src]
impl<'a, T> ToGlibContainerFromSlice<'a, *mut GArray> for T where
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
[src][+]
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
type Storage = (Option<Array>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)
fn to_glib_none_from_slice(
t: &'a [T]
) -> (*mut GArray, <T as ToGlibContainerFromSlice<'a, *mut GArray>>::Storage)
[src]
t: &'a [T]
) -> (*mut GArray, <T as ToGlibContainerFromSlice<'a, *mut GArray>>::Storage)
fn to_glib_container_from_slice(
t: &'a [T]
) -> (*mut GArray, <T as ToGlibContainerFromSlice<'a, *mut GArray>>::Storage)
[src]
t: &'a [T]
) -> (*mut GArray, <T as ToGlibContainerFromSlice<'a, *mut GArray>>::Storage)
fn to_glib_full_from_slice(t: &[T]) -> *mut GArray
[src]
impl<'a, T> ToGlibContainerFromSlice<'a, *mut GList> for T where
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
[src][+]
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
type Storage = (Option<List>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)
fn to_glib_none_from_slice(
t: &'a [T]
) -> (*mut GList, <T as ToGlibContainerFromSlice<'a, *mut GList>>::Storage)
[src]
t: &'a [T]
) -> (*mut GList, <T as ToGlibContainerFromSlice<'a, *mut GList>>::Storage)
fn to_glib_container_from_slice(
t: &'a [T]
) -> (*mut GList, <T as ToGlibContainerFromSlice<'a, *mut GList>>::Storage)
[src]
t: &'a [T]
) -> (*mut GList, <T as ToGlibContainerFromSlice<'a, *mut GList>>::Storage)
fn to_glib_full_from_slice(t: &[T]) -> *mut GList
[src]
impl<'a, T> ToGlibContainerFromSlice<'a, *mut GPtrArray> for T where
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
[src][+]
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
type Storage = (Option<PtrArray>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)
fn to_glib_none_from_slice(
t: &'a [T]
) -> (*mut GPtrArray, <T as ToGlibContainerFromSlice<'a, *mut GPtrArray>>::Storage)
[src]
t: &'a [T]
) -> (*mut GPtrArray, <T as ToGlibContainerFromSlice<'a, *mut GPtrArray>>::Storage)
fn to_glib_container_from_slice(
t: &'a [T]
) -> (*mut GPtrArray, <T as ToGlibContainerFromSlice<'a, *mut GPtrArray>>::Storage)
[src]
t: &'a [T]
) -> (*mut GPtrArray, <T as ToGlibContainerFromSlice<'a, *mut GPtrArray>>::Storage)
fn to_glib_full_from_slice(t: &[T]) -> *mut GPtrArray
[src]
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src][−]
Creates owned data from borrowed data, usually by cloning. Read more
fn clone_into(&self, target: &mut T)
[src][−]
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> ToSendValue for T where
T: ToValue + SetValue + Send + ?Sized,
[src][+]
T: ToValue + SetValue + Send + ?Sized,
fn to_send_value(&self) -> SendValue
[src][−]
Returns a SendValue
clone of self
.
impl<T> ToValue for T where
T: SetValue + ?Sized,
[src][+]
T: SetValue + ?Sized,
fn to_value(&self) -> Value
[src][−]
Returns a Value
clone of self
.
fn to_value_type(&self) -> Type
[src][−]
Returns the type identifer of self
. Read more
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src][−]
Performs the conversion.
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,