NetworkManagerProxy

Struct NetworkManagerProxy 

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

Implementations§

Source§

impl<'p> NetworkManagerProxy<'p>

Source

pub async fn new(conn: &Connection) -> Result<NetworkManagerProxy<'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 activate_connection( &self, connection: &ObjectPath<'_>, device: &ObjectPath<'_>, specific_object: &ObjectPath<'_>, ) -> Result<OwnedObjectPath>

ActivateConnection method

Source

pub async fn add_and_activate_connection( &self, connection: HashMap<&str, HashMap<&str, Value<'_>>>, device: &ObjectPath<'_>, specific_object: &ObjectPath<'_>, ) -> Result<(OwnedObjectPath, OwnedObjectPath)>

AddAndActivateConnection method

Source

pub async fn add_and_activate_connection2( &self, connection: HashMap<&str, HashMap<&str, Value<'_>>>, device: &ObjectPath<'_>, specific_object: &ObjectPath<'_>, options: HashMap<&str, Value<'_>>, ) -> Result<(OwnedObjectPath, OwnedObjectPath, HashMap<String, OwnedValue>)>

AddAndActivateConnection2 method

Source

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

CheckConnectivity method

Source

pub async fn checkpoint_adjust_rollback_timeout( &self, checkpoint: &ObjectPath<'_>, add_timeout: u32, ) -> Result<()>

CheckpointAdjustRollbackTimeout method

Source

pub async fn checkpoint_create( &self, devices: &[ObjectPath<'_>], rollback_timeout: u32, flags: u32, ) -> Result<OwnedObjectPath>

CheckpointCreate method

Source

pub async fn checkpoint_destroy( &self, checkpoint: &ObjectPath<'_>, ) -> Result<()>

CheckpointDestroy method

Source

pub async fn checkpoint_rollback( &self, checkpoint: &ObjectPath<'_>, ) -> Result<HashMap<String, u32>>

CheckpointRollback method

Source

pub async fn deactivate_connection( &self, active_connection: &ObjectPath<'_>, ) -> Result<()>

DeactivateConnection method

Source

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

Enable method

Source

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

GetAllDevices method

Source

pub async fn get_device_by_ip_iface( &self, iface: &str, ) -> Result<OwnedObjectPath>

GetDeviceByIpIface method

Source

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

GetDevices method

Source

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

GetLogging method

Source

pub async fn get_permissions(&self) -> Result<HashMap<String, String>>

GetPermissions method

Source

pub async fn reload(&self, flags: u32) -> Result<()>

Reload method

Source

pub async fn set_logging(&self, level: &str, domains: &str) -> Result<()>

SetLogging method

Source

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

Sleep method

Source

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

state method

Source

pub async fn receive_check_permissions(&self) -> Result<CheckPermissionsStream>

Create a stream that receives CheckPermissions signals.

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

Source

pub async fn receive_device_added(&self) -> Result<DeviceAddedStream>

Create a stream that receives DeviceAdded signals.

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

Source

pub async fn receive_device_added_with_args( &self, args: &[(u8, &str)], ) -> Result<DeviceAddedStream>

Create a stream that receives DeviceAdded signals.

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

Source

pub async fn receive_device_removed(&self) -> Result<DeviceRemovedStream>

Create a stream that receives DeviceRemoved signals.

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

Source

pub async fn receive_device_removed_with_args( &self, args: &[(u8, &str)], ) -> Result<DeviceRemovedStream>

Create a stream that receives DeviceRemoved signals.

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

Source

pub async fn receive_state_changed(&self) -> Result<StateChangedStream>

Create a stream that receives StateChanged signals.

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

Source

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

Create a stream that receives StateChanged signals.

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

Source

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

ActivatingConnection property

Source

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

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

Source

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

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

Source

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

ActiveConnections property

Source

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

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

Source

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

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

Source

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

AllDevices property

Source

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

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

Source

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

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

Source

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

Capabilities property

Source

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

Capabilities property 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<Vec<u32>> as ResultAdapter>::Ok>

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

Source

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

Checkpoints property

Source

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

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

Source

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

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

Source

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

Connectivity property

Source

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

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

Source

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

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

Source

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

ConnectivityCheckAvailable property

Source

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

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

Source

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

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

Source

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

ConnectivityCheckEnabled property

Source

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

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

Source

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

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

Source

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

Source

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

ConnectivityCheckUri property

Source

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

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

Source

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

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

Source

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

Devices property

Source

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

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

Source

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

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

Source

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

GlobalDnsConfiguration property

Source

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

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

Source

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

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

Source

pub async fn set_global_dns_configuration( &self, value: HashMap<&str, Value<'_>>, ) -> 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>

Metered property 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>

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

Source

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

NetworkingEnabled property

Source

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

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

Source

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

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

Source

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

PrimaryConnection property

Source

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

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

Source

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

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

Source

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

PrimaryConnectionType property

Source

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

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

Source

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

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

Source

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

RadioFlags property

Source

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

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

Source

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

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

Source

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

Startup property

Source

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

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

Source

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

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

Source

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

Version property

Source

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

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

Source

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

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

Source

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

VersionInfo property

Source

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

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

Source

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

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

Source

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

WimaxEnabled property

Source

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

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

Source

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

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

Source

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

Source

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

WimaxHardwareEnabled property

Source

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

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

Source

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

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

Source

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

WirelessEnabled property

Source

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

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

Source

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

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

Source

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

Source

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

WirelessHardwareEnabled property

Source

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

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

Source

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

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

Source

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

WwanEnabled property

Source

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

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

Source

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

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

Source

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

Source

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

WwanHardwareEnabled property

Source

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

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

Source

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

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

Trait Implementations§

Source§

impl<'p> AsMut<Proxy<'p>> for NetworkManagerProxy<'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 NetworkManagerProxy<'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 NetworkManagerProxy<'p>

Source§

fn clone(&self) -> NetworkManagerProxy<'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 NetworkManagerProxy<'p>

Source§

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

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

impl<'a> Defaults for NetworkManagerProxy<'a>

Source§

const INTERFACE: &'static Option<InterfaceName<'static>>

Source§

const DESTINATION: &'static Option<BusName<'static>>

Source§

const PATH: &'static Option<ObjectPath<'static>>

Source§

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

Source§

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

Converts to this type from the input type.
Source§

impl<'p> ProxyImpl<'p> for NetworkManagerProxy<'p>

Source§

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

Return a customizable builder for this proxy.
Source§

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

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

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

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

impl<'p> Serialize for NetworkManagerProxy<'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 NetworkManagerProxy<'p>

Source§

const SIGNATURE: &'static Signature

The signature for the implementing type, in parsed format. Read more

Auto Trait Implementations§

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 signature(&self) -> Signature

The type signature for self. 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> 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<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