[−][src]Struct dbus_strings::InterfaceName
A D-Bus interface name is usually something like "org.freedesktop.DBus"
For exact rules see the D-Bus specification.
Like str and CStr, this struct is unsized, which means that the way to access it is through a reference.
Methods
impl InterfaceName
[src]
pub fn as_dbus_str(&self) -> &DBusStr
[src]
Type conversion to DBusStr.
Trait Implementations
impl AsRef<DBusStr> for InterfaceName
[src]
impl AsRef<str> for InterfaceName
[src]
impl Borrow<InterfaceName> for InterfaceNameBuf
[src]
fn borrow(&self) -> &InterfaceName
[src]
impl Debug for InterfaceName
[src]
impl Deref for InterfaceName
[src]
impl Display for InterfaceName
[src]
impl Eq for InterfaceName
[src]
impl<'a> From<&'a InterfaceName> for Cow<'a, InterfaceName>
[src]
fn from(s: &'a InterfaceName) -> Cow<'a, InterfaceName>
[src]
impl<'a> From<&'a InterfaceName> for &'a DBusStr
[src]
fn from(s: &'a InterfaceName) -> &'a DBusStr
[src]
impl Hash for InterfaceName
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for InterfaceName
[src]
fn cmp(&self, other: &InterfaceName) -> Ordering
[src]
#[must_use]
fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]
fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<InterfaceName> for InterfaceName
[src]
fn eq(&self, other: &InterfaceName) -> bool
[src]
fn ne(&self, other: &InterfaceName) -> bool
[src]
impl PartialOrd<InterfaceName> for InterfaceName
[src]
fn partial_cmp(&self, other: &InterfaceName) -> Option<Ordering>
[src]
fn lt(&self, other: &InterfaceName) -> bool
[src]
fn le(&self, other: &InterfaceName) -> bool
[src]
fn gt(&self, other: &InterfaceName) -> bool
[src]
fn ge(&self, other: &InterfaceName) -> bool
[src]
impl StringLike for InterfaceName
[src]
const NAME: &'static str
[src]
fn new_unchecked(s: &str) -> &Self
[src]
fn new_unchecked_owned(s: String) -> InterfaceNameBuf
[src]
fn is_valid(s: &str) -> Result<(), InvalidStringError>
[src]
fn new(s: &str) -> Result<&Self, InvalidStringError>
[src]
fn new_owned<S: Into<String>>(s: S) -> Result<Self::Owned, InvalidStringError>
[src]
impl StructuralEq for InterfaceName
[src]
impl StructuralPartialEq for InterfaceName
[src]
impl ToOwned for InterfaceName
[src]
type Owned = InterfaceNameBuf
The resulting type after obtaining ownership.
fn to_owned(&self) -> InterfaceNameBuf
[src]
fn clone_into(&self, target: &mut Self::Owned)
[src]
impl<'a> TryFrom<&'a DBusStr> for &'a InterfaceName
[src]
type Error = InvalidStringError
The type returned in the event of a conversion error.
fn try_from(s: &'a DBusStr) -> Result<&'a InterfaceName, Self::Error>
[src]
impl<'a> TryFrom<&'a str> for &'a InterfaceName
[src]
type Error = InvalidStringError
The type returned in the event of a conversion error.
fn try_from(s: &'a str) -> Result<&'a InterfaceName, Self::Error>
[src]
Auto Trait Implementations
impl RefUnwindSafe for InterfaceName
impl Send for InterfaceName
impl Sync for InterfaceName
impl Unpin for InterfaceName
impl UnwindSafe for InterfaceName
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[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]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,