[−][src]Struct dbus_strings::ObjectPath
A D-Bus object path 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 ObjectPath
[src]
pub fn as_dbus_str(&self) -> &DBusStr
[src]
Type conversion to DBusStr.
Trait Implementations
impl AsRef<DBusStr> for ObjectPath
[src]
impl AsRef<str> for ObjectPath
[src]
impl Borrow<ObjectPath> for ObjectPathBuf
[src]
fn borrow(&self) -> &ObjectPath
[src]
impl Debug for ObjectPath
[src]
impl Deref for ObjectPath
[src]
impl Display for ObjectPath
[src]
impl Eq for ObjectPath
[src]
impl<'a> From<&'a ObjectPath> for Cow<'a, ObjectPath>
[src]
fn from(s: &'a ObjectPath) -> Cow<'a, ObjectPath>
[src]
impl<'a> From<&'a ObjectPath> for &'a DBusStr
[src]
fn from(s: &'a ObjectPath) -> &'a DBusStr
[src]
impl Hash for ObjectPath
[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 ObjectPath
[src]
fn cmp(&self, other: &ObjectPath) -> 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<ObjectPath> for ObjectPath
[src]
fn eq(&self, other: &ObjectPath) -> bool
[src]
fn ne(&self, other: &ObjectPath) -> bool
[src]
impl PartialOrd<ObjectPath> for ObjectPath
[src]
fn partial_cmp(&self, other: &ObjectPath) -> Option<Ordering>
[src]
fn lt(&self, other: &ObjectPath) -> bool
[src]
fn le(&self, other: &ObjectPath) -> bool
[src]
fn gt(&self, other: &ObjectPath) -> bool
[src]
fn ge(&self, other: &ObjectPath) -> bool
[src]
impl StringLike for ObjectPath
[src]
const NAME: &'static str
[src]
fn new_unchecked(s: &str) -> &Self
[src]
fn new_unchecked_owned(s: String) -> ObjectPathBuf
[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 ObjectPath
[src]
impl StructuralPartialEq for ObjectPath
[src]
impl ToOwned for ObjectPath
[src]
type Owned = ObjectPathBuf
The resulting type after obtaining ownership.
fn to_owned(&self) -> ObjectPathBuf
[src]
fn clone_into(&self, target: &mut Self::Owned)
[src]
impl<'a> TryFrom<&'a DBusStr> for &'a ObjectPath
[src]
type Error = InvalidStringError
The type returned in the event of a conversion error.
fn try_from(s: &'a DBusStr) -> Result<&'a ObjectPath, Self::Error>
[src]
impl<'a> TryFrom<&'a str> for &'a ObjectPath
[src]
type Error = InvalidStringError
The type returned in the event of a conversion error.
fn try_from(s: &'a str) -> Result<&'a ObjectPath, Self::Error>
[src]
Auto Trait Implementations
impl RefUnwindSafe for ObjectPath
impl Send for ObjectPath
impl Sync for ObjectPath
impl Unpin for ObjectPath
impl UnwindSafe for ObjectPath
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,