pub struct ObjectPath<S>(/* private fields */)
where
S: AsRef<str>;
Expand description
Wraps a String or a &str or whatever implements AsRef
Implementations§
Source§impl<S> ObjectPath<S>
impl<S> ObjectPath<S>
pub fn new(path: S) -> Result<ObjectPath<S>, Error>
pub fn to_owned(&self) -> ObjectPath<String>
Trait Implementations§
Source§impl<S> AsRef<str> for ObjectPath<S>
impl<S> AsRef<str> for ObjectPath<S>
Source§impl<S> Clone for ObjectPath<S>
impl<S> Clone for ObjectPath<S>
Source§fn clone(&self) -> ObjectPath<S>
fn clone(&self) -> ObjectPath<S>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<S> Debug for ObjectPath<S>
impl<S> Debug for ObjectPath<S>
Source§impl<S> Hash for ObjectPath<S>
impl<S> Hash for ObjectPath<S>
Source§impl<S> Marshal for ObjectPath<S>
impl<S> Marshal for ObjectPath<S>
fn marshal(&self, ctx: &mut MarshalContext<'_, '_>) -> Result<(), Error>
fn marshal_as_variant( &self, ctx: &mut MarshalContext<'_, '_>, ) -> Result<(), Error>
Source§impl<S> PartialEq for ObjectPath<S>
impl<S> PartialEq for ObjectPath<S>
Source§impl<S> Signature for ObjectPath<S>
impl<S> Signature for ObjectPath<S>
fn signature() -> Type
fn alignment() -> usize
Source§fn sig_str(s_buf: &mut SignatureBuffer)
fn sig_str(s_buf: &mut SignatureBuffer)
Appends the signature of the type to the
SignatureBuffer
. Read moreSource§impl<'buf, 'fds, S> Unmarshal<'buf, 'fds> for ObjectPath<S>
impl<'buf, 'fds, S> Unmarshal<'buf, 'fds> for ObjectPath<S>
fn unmarshal( ctx: &mut UnmarshalContext<'fds, 'buf>, ) -> Result<(usize, ObjectPath<S>), Error>
impl<S> Copy for ObjectPath<S>
impl<S> Eq for ObjectPath<S>
impl<S> StructuralPartialEq for ObjectPath<S>
Auto Trait Implementations§
impl<S> Freeze for ObjectPath<S>where
S: Freeze,
impl<S> RefUnwindSafe for ObjectPath<S>where
S: RefUnwindSafe,
impl<S> Send for ObjectPath<S>where
S: Send,
impl<S> Sync for ObjectPath<S>where
S: Sync,
impl<S> Unpin for ObjectPath<S>where
S: Unpin,
impl<S> UnwindSafe for ObjectPath<S>where
S: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more