Struct DeviceProxy

Source
pub struct DeviceProxy<'p>(/* private fields */);

Implementations§

Source§

impl DeviceProxy<'_>

Source

pub async fn new_from_path( device_path: OwnedObjectPath, connection: &Connection, ) -> Result<DeviceProxy<'_>>

Source§

impl<'p> DeviceProxy<'p>

Source

pub async fn new(conn: &Connection) -> Result<DeviceProxy<'p>>

Creates a new proxy with the default service and path.

Source

pub fn builder(conn: &Connection) -> Builder<'p, Self>

Returns a customizable builder for this proxy.

Source

pub fn into_inner(self) -> Proxy<'p>

Consumes self, returning the underlying zbus::Proxy.

Source

pub fn inner(&self) -> &Proxy<'p>

The reference to the underlying zbus::Proxy.

Source

pub fn inner_mut(&mut self) -> &mut Proxy<'p>

The mutable reference to the underlying zbus::Proxy.

Source

pub async fn delete(&self) -> Result<()>

Delete method

Source

pub async fn disconnect(&self) -> Result<()>

Disconnect method

Source

pub async fn get_applied_connection( &self, flags: u32, ) -> Result<(HashMap<String, HashMap<String, OwnedValue>>, u64)>

GetAppliedConnection method

Source

pub async fn reapply( &self, connection: HashMap<&str, HashMap<&str, Value<'_>>>, version_id: u64, flags: u32, ) -> Result<()>

Reapply method

Source

pub async fn receive_device_state_changed( &self, ) -> Result<StateChangedStream<'static>>

Create a stream that receives StateChanged signals.

This a convenient wrapper around zbus::Proxy::receive_signal. StateChanged signal

Source

pub async fn receive_device_state_changed_with_args( &self, args: &[(u8, &str)], ) -> Result<StateChangedStream<'static>>

Create a stream that receives StateChanged signals.

This a convenient wrapper around zbus::Proxy::receive_signal_with_args. StateChanged signal

Source

pub async fn active_connection(&self) -> Result<OwnedObjectPath>

ActiveConnection property

Source

pub fn cached_active_connection( &self, ) -> Result<Option<<Result<OwnedObjectPath> as ResultAdapter>::Ok>, <Result<OwnedObjectPath> as ResultAdapter>::Err>

Get the cached value of the ActiveConnection property, or None if the property is not cached.

Source

pub async fn receive_active_connection_changed( &self, ) -> PropertyStream<'p, <Result<OwnedObjectPath> as ResultAdapter>::Ok>

Create a stream for the ActiveConnection property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.

Source

pub async fn autoconnect(&self) -> Result<bool>

Autoconnect property

Source

pub fn cached_autoconnect( &self, ) -> Result<Option<<Result<bool> as ResultAdapter>::Ok>, <Result<bool> as ResultAdapter>::Err>

Get the cached value of the Autoconnect property, or None if the property is not cached.

Source

pub async fn receive_autoconnect_changed( &self, ) -> PropertyStream<'p, <Result<bool> as ResultAdapter>::Ok>

Create a stream for the Autoconnect property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.

Source

pub async fn set_autoconnect(&self, value: bool) -> Result<()>

Source

pub async fn available_connections(&self) -> Result<Vec<OwnedObjectPath>>

AvailableConnections property

Source

pub fn cached_available_connections( &self, ) -> Result<Option<<Result<Vec<OwnedObjectPath>> as ResultAdapter>::Ok>, <Result<Vec<OwnedObjectPath>> as ResultAdapter>::Err>

Get the cached value of the AvailableConnections property, or None if the property is not cached.

Source

pub async fn receive_available_connections_changed( &self, ) -> PropertyStream<'p, <Result<Vec<OwnedObjectPath>> as ResultAdapter>::Ok>

Create a stream for the AvailableConnections property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.

Source

pub async fn capabilities(&self) -> Result<u32>

Capabilities property

Source

pub fn cached_capabilities( &self, ) -> Result<Option<<Result<u32> as ResultAdapter>::Ok>, <Result<u32> as ResultAdapter>::Err>

Get the cached value of the Capabilities property, or None if the property is not cached.

Source

pub async fn receive_capabilities_changed( &self, ) -> PropertyStream<'p, <Result<u32> as ResultAdapter>::Ok>

Create a stream for the Capabilities property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.

Source

pub async fn device_type(&self) -> Result<u32>

DeviceType property

Source

pub fn cached_device_type( &self, ) -> Result<Option<<Result<u32> as ResultAdapter>::Ok>, <Result<u32> as ResultAdapter>::Err>

Get the cached value of the DeviceType property, or None if the property is not cached.

Source

pub async fn receive_device_type_changed( &self, ) -> PropertyStream<'p, <Result<u32> as ResultAdapter>::Ok>

Create a stream for the DeviceType property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.

Source

pub async fn dhcp4_config(&self) -> Result<OwnedObjectPath>

Dhcp4Config property

Source

pub fn cached_dhcp4_config( &self, ) -> Result<Option<<Result<OwnedObjectPath> as ResultAdapter>::Ok>, <Result<OwnedObjectPath> as ResultAdapter>::Err>

Get the cached value of the Dhcp4Config property, or None if the property is not cached.

Source

pub async fn receive_dhcp4_config_changed( &self, ) -> PropertyStream<'p, <Result<OwnedObjectPath> as ResultAdapter>::Ok>

Create a stream for the Dhcp4Config property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.

Source

pub async fn dhcp6_config(&self) -> Result<OwnedObjectPath>

Dhcp6Config property

Source

pub fn cached_dhcp6_config( &self, ) -> Result<Option<<Result<OwnedObjectPath> as ResultAdapter>::Ok>, <Result<OwnedObjectPath> as ResultAdapter>::Err>

Get the cached value of the Dhcp6Config property, or None if the property is not cached.

Source

pub async fn receive_dhcp6_config_changed( &self, ) -> PropertyStream<'p, <Result<OwnedObjectPath> as ResultAdapter>::Ok>

Create a stream for the Dhcp6Config property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.

Source

pub async fn driver(&self) -> Result<String>

Driver property

Source

pub fn cached_driver( &self, ) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>

Get the cached value of the Driver property, or None if the property is not cached.

Source

pub async fn receive_driver_changed( &self, ) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>

Create a stream for the Driver property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.

Source

pub async fn driver_version(&self) -> Result<String>

DriverVersion property

Source

pub fn cached_driver_version( &self, ) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>

Get the cached value of the DriverVersion property, or None if the property is not cached.

Source

pub async fn receive_driver_version_changed( &self, ) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>

Create a stream for the DriverVersion property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.

Source

pub async fn firmware_missing(&self) -> Result<bool>

FirmwareMissing property

Source

pub fn cached_firmware_missing( &self, ) -> Result<Option<<Result<bool> as ResultAdapter>::Ok>, <Result<bool> as ResultAdapter>::Err>

Get the cached value of the FirmwareMissing property, or None if the property is not cached.

Source

pub async fn receive_firmware_missing_changed( &self, ) -> PropertyStream<'p, <Result<bool> as ResultAdapter>::Ok>

Create a stream for the FirmwareMissing property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.

Source

pub async fn firmware_version(&self) -> Result<String>

FirmwareVersion property

Source

pub fn cached_firmware_version( &self, ) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>

Get the cached value of the FirmwareVersion property, or None if the property is not cached.

Source

pub async fn receive_firmware_version_changed( &self, ) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>

Create a stream for the FirmwareVersion property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.

Source

pub async fn hw_address(&self) -> Result<String>

HwAddress property

Source

pub fn cached_hw_address( &self, ) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>

Get the cached value of the HwAddress property, or None if the property is not cached.

Source

pub async fn receive_hw_address_changed( &self, ) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>

Create a stream for the HwAddress property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.

Source

pub async fn interface(&self) -> Result<String>

Interface property

Source

pub fn cached_interface( &self, ) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>

Get the cached value of the Interface property, or None if the property is not cached.

Source

pub async fn receive_interface_changed( &self, ) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>

Create a stream for the Interface property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.

Source

pub async fn interface_flags(&self) -> Result<u32>

InterfaceFlags property

Source

pub fn cached_interface_flags( &self, ) -> Result<Option<<Result<u32> as ResultAdapter>::Ok>, <Result<u32> as ResultAdapter>::Err>

Get the cached value of the InterfaceFlags property, or None if the property is not cached.

Source

pub async fn receive_interface_flags_changed( &self, ) -> PropertyStream<'p, <Result<u32> as ResultAdapter>::Ok>

Create a stream for the InterfaceFlags property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.

Source

pub async fn ip4_address(&self) -> Result<u32>

Ip4Address property

Source

pub fn cached_ip4_address( &self, ) -> Result<Option<<Result<u32> as ResultAdapter>::Ok>, <Result<u32> as ResultAdapter>::Err>

Get the cached value of the Ip4Address property, or None if the property is not cached.

Source

pub async fn receive_ip4_address_changed( &self, ) -> PropertyStream<'p, <Result<u32> as ResultAdapter>::Ok>

Create a stream for the Ip4Address property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.

Source

pub async fn ip4_config(&self) -> Result<OwnedObjectPath>

Ip4Config property

Source

pub fn cached_ip4_config( &self, ) -> Result<Option<<Result<OwnedObjectPath> as ResultAdapter>::Ok>, <Result<OwnedObjectPath> as ResultAdapter>::Err>

Get the cached value of the Ip4Config property, or None if the property is not cached.

Source

pub async fn receive_ip4_config_changed( &self, ) -> PropertyStream<'p, <Result<OwnedObjectPath> as ResultAdapter>::Ok>

Create a stream for the Ip4Config property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.

Source

pub async fn ip4_connectivity(&self) -> Result<u32>

Ip4Connectivity property

Source

pub fn cached_ip4_connectivity( &self, ) -> Result<Option<<Result<u32> as ResultAdapter>::Ok>, <Result<u32> as ResultAdapter>::Err>

Get the cached value of the Ip4Connectivity property, or None if the property is not cached.

Source

pub async fn receive_ip4_connectivity_changed( &self, ) -> PropertyStream<'p, <Result<u32> as ResultAdapter>::Ok>

Create a stream for the Ip4Connectivity property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.

Source

pub async fn ip6_config(&self) -> Result<OwnedObjectPath>

Ip6Config property

Source

pub fn cached_ip6_config( &self, ) -> Result<Option<<Result<OwnedObjectPath> as ResultAdapter>::Ok>, <Result<OwnedObjectPath> as ResultAdapter>::Err>

Get the cached value of the Ip6Config property, or None if the property is not cached.

Source

pub async fn receive_ip6_config_changed( &self, ) -> PropertyStream<'p, <Result<OwnedObjectPath> as ResultAdapter>::Ok>

Create a stream for the Ip6Config property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.

Source

pub async fn ip6_connectivity(&self) -> Result<u32>

Ip6Connectivity property

Source

pub fn cached_ip6_connectivity( &self, ) -> Result<Option<<Result<u32> as ResultAdapter>::Ok>, <Result<u32> as ResultAdapter>::Err>

Get the cached value of the Ip6Connectivity property, or None if the property is not cached.

Source

pub async fn receive_ip6_connectivity_changed( &self, ) -> PropertyStream<'p, <Result<u32> as ResultAdapter>::Ok>

Create a stream for the Ip6Connectivity property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.

Source

pub async fn ip_interface(&self) -> Result<String>

IpInterface property

Source

pub fn cached_ip_interface( &self, ) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>

Get the cached value of the IpInterface property, or None if the property is not cached.

Source

pub async fn receive_ip_interface_changed( &self, ) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>

Create a stream for the IpInterface property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.

Source

pub async fn lldp_neighbors(&self) -> Result<Vec<HashMap<String, OwnedValue>>>

LldpNeighbors property

Source

pub fn cached_lldp_neighbors( &self, ) -> Result<Option<<Result<Vec<HashMap<String, OwnedValue>>> as ResultAdapter>::Ok>, <Result<Vec<HashMap<String, OwnedValue>>> as ResultAdapter>::Err>

Get the cached value of the LldpNeighbors property, or None if the property is not cached.

Source

pub async fn receive_lldp_neighbors_changed( &self, ) -> PropertyStream<'p, <Result<Vec<HashMap<String, OwnedValue>>> as ResultAdapter>::Ok>

Create a stream for the LldpNeighbors property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.

Source

pub async fn managed(&self) -> Result<bool>

Managed property

Source

pub fn cached_managed( &self, ) -> Result<Option<<Result<bool> as ResultAdapter>::Ok>, <Result<bool> as ResultAdapter>::Err>

Get the cached value of the Managed property, or None if the property is not cached.

Source

pub async fn receive_managed_changed( &self, ) -> PropertyStream<'p, <Result<bool> as ResultAdapter>::Ok>

Create a stream for the Managed property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.

Source

pub async fn set_managed(&self, value: bool) -> Result<()>

Source

pub async fn metered(&self) -> Result<u32>

Metered property

Source

pub fn cached_metered( &self, ) -> Result<Option<<Result<u32> as ResultAdapter>::Ok>, <Result<u32> as ResultAdapter>::Err>

Get the cached value of the Metered property, or None if the property is not cached.

Source

pub async fn receive_metered_changed( &self, ) -> PropertyStream<'p, <Result<u32> as ResultAdapter>::Ok>

Create a stream for the Metered property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.

Source

pub async fn mtu(&self) -> Result<u32>

Mtu property

Source

pub fn cached_mtu( &self, ) -> Result<Option<<Result<u32> as ResultAdapter>::Ok>, <Result<u32> as ResultAdapter>::Err>

Get the cached value of the Mtu property, or None if the property is not cached.

Source

pub async fn receive_mtu_changed( &self, ) -> PropertyStream<'p, <Result<u32> as ResultAdapter>::Ok>

Create a stream for the Mtu property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.

Source

pub async fn nm_plugin_missing(&self) -> Result<bool>

NmPluginMissing property

Source

pub fn cached_nm_plugin_missing( &self, ) -> Result<Option<<Result<bool> as ResultAdapter>::Ok>, <Result<bool> as ResultAdapter>::Err>

Get the cached value of the NmPluginMissing property, or None if the property is not cached.

Source

pub async fn receive_nm_plugin_missing_changed( &self, ) -> PropertyStream<'p, <Result<bool> as ResultAdapter>::Ok>

Create a stream for the NmPluginMissing property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.

Source

pub async fn path(&self) -> Result<String>

Path property

Source

pub fn cached_path( &self, ) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>

Get the cached value of the Path property, or None if the property is not cached.

Source

pub async fn receive_path_changed( &self, ) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>

Create a stream for the Path property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.

Source

pub async fn physical_port_id(&self) -> Result<String>

PhysicalPortId property

Source

pub fn cached_physical_port_id( &self, ) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>

Get the cached value of the PhysicalPortId property, or None if the property is not cached.

Source

pub async fn receive_physical_port_id_changed( &self, ) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>

Create a stream for the PhysicalPortId property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.

Source

pub async fn ports(&self) -> Result<Vec<OwnedObjectPath>>

Ports property

Source

pub fn cached_ports( &self, ) -> Result<Option<<Result<Vec<OwnedObjectPath>> as ResultAdapter>::Ok>, <Result<Vec<OwnedObjectPath>> as ResultAdapter>::Err>

Get the cached value of the Ports property, or None if the property is not cached.

Source

pub async fn receive_ports_changed( &self, ) -> PropertyStream<'p, <Result<Vec<OwnedObjectPath>> as ResultAdapter>::Ok>

Create a stream for the Ports property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.

Source

pub async fn real(&self) -> Result<bool>

Real property

Source

pub fn cached_real( &self, ) -> Result<Option<<Result<bool> as ResultAdapter>::Ok>, <Result<bool> as ResultAdapter>::Err>

Get the cached value of the Real property, or None if the property is not cached.

Source

pub async fn receive_real_changed( &self, ) -> PropertyStream<'p, <Result<bool> as ResultAdapter>::Ok>

Create a stream for the Real property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.

Source

pub async fn state(&self) -> Result<u32>

State property

Source

pub fn cached_state( &self, ) -> Result<Option<<Result<u32> as ResultAdapter>::Ok>, <Result<u32> as ResultAdapter>::Err>

Get the cached value of the State property, or None if the property is not cached.

Source

pub async fn receive_state_changed( &self, ) -> PropertyStream<'p, <Result<u32> as ResultAdapter>::Ok>

Create a stream for the State property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.

Source

pub async fn state_reason(&self) -> Result<(u32, u32)>

StateReason property

Source

pub fn cached_state_reason( &self, ) -> Result<Option<<Result<(u32, u32)> as ResultAdapter>::Ok>, <Result<(u32, u32)> as ResultAdapter>::Err>

Get the cached value of the StateReason property, or None if the property is not cached.

Source

pub async fn receive_state_reason_changed( &self, ) -> PropertyStream<'p, <Result<(u32, u32)> as ResultAdapter>::Ok>

Create a stream for the StateReason property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.

Source

pub async fn udi(&self) -> Result<String>

Udi property

Source

pub fn cached_udi( &self, ) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>

Get the cached value of the Udi property, or None if the property is not cached.

Source

pub async fn receive_udi_changed( &self, ) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>

Create a stream for the Udi property changes. This is a convenient wrapper around zbus::Proxy::receive_property_changed.

Trait Implementations§

Source§

impl<'p> AsMut<Proxy<'p>> for DeviceProxy<'p>

Source§

fn as_mut(&mut self) -> &mut Proxy<'p>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<'p> AsRef<Proxy<'p>> for DeviceProxy<'p>

Source§

fn as_ref(&self) -> &Proxy<'p>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<'p> Clone for DeviceProxy<'p>

Source§

fn clone(&self) -> DeviceProxy<'p>

Returns a duplicate 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<'p> Debug for DeviceProxy<'p>

Source§

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

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

impl<'p> From<Proxy<'p>> for DeviceProxy<'p>

Source§

fn from(proxy: Proxy<'p>) -> Self

Converts to this type from the input type.
Source§

impl<'a> ProxyDefault for DeviceProxy<'a>

Source§

const INTERFACE: Option<&'static str>

Source§

const DESTINATION: Option<&'static str>

Source§

const PATH: Option<&'static str>

Source§

impl<'p> ProxyImpl<'p> for DeviceProxy<'p>

Source§

fn builder(conn: &Connection) -> Builder<'p, Self>

Returns a customizable builder for this proxy.
Source§

fn into_inner(self) -> Proxy<'p>

Consumes self, returning the underlying zbus::Proxy.
Source§

fn inner(&self) -> &Proxy<'p>

The reference to the underlying zbus::Proxy.
Source§

impl<'p> Serialize for DeviceProxy<'p>

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<'p> Type for DeviceProxy<'p>

Source§

fn signature() -> Signature<'static>

Get the signature for the implementing type. Read more

Auto Trait Implementations§

§

impl<'p> Freeze for DeviceProxy<'p>

§

impl<'p> !RefUnwindSafe for DeviceProxy<'p>

§

impl<'p> Send for DeviceProxy<'p>

§

impl<'p> Sync for DeviceProxy<'p>

§

impl<'p> Unpin for DeviceProxy<'p>

§

impl<'p> !UnwindSafe for DeviceProxy<'p>

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DynamicType for T
where T: Type + ?Sized,

Source§

fn dynamic_signature(&self) -> Signature<'_>

Get the signature for the implementing type. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where 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> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

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, U> TryFrom<U> for T
where U: Into<T>,

Source§

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, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more