Struct rustbus::wire::ObjectPath
source · pub struct ObjectPath<S: AsRef<str>>(_);
Expand description
Wraps a String or a &str or whatever implements AsRef
Implementations§
Trait Implementations§
source§impl<S: Clone + AsRef<str>> Clone for ObjectPath<S>
impl<S: Clone + AsRef<str>> 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: AsRef<str>> Marshal for ObjectPath<S>
impl<S: AsRef<str>> Marshal for ObjectPath<S>
fn marshal(&self, ctx: &mut MarshalContext<'_, '_>) -> Result<(), MarshalError>
fn marshal_as_variant( &self, ctx: &mut MarshalContext<'_, '_> ) -> Result<(), MarshalError>
source§impl<S: PartialEq + AsRef<str>> PartialEq<ObjectPath<S>> for ObjectPath<S>
impl<S: PartialEq + AsRef<str>> PartialEq<ObjectPath<S>> for ObjectPath<S>
source§fn eq(&self, other: &ObjectPath<S>) -> bool
fn eq(&self, other: &ObjectPath<S>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<S: AsRef<str>> Signature for ObjectPath<S>
impl<S: AsRef<str>> 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: AsRef<str> + Unmarshal<'buf, 'fds>> Unmarshal<'buf, 'fds> for ObjectPath<S>
impl<'buf, 'fds, S: AsRef<str> + Unmarshal<'buf, 'fds>> Unmarshal<'buf, 'fds> for ObjectPath<S>
fn unmarshal(ctx: &mut UnmarshalContext<'fds, 'buf>) -> UnmarshalResult<Self>
impl<S: Copy + AsRef<str>> Copy for ObjectPath<S>
impl<S: Eq + AsRef<str>> Eq for ObjectPath<S>
impl<S: AsRef<str>> StructuralEq for ObjectPath<S>
impl<S: AsRef<str>> StructuralPartialEq for ObjectPath<S>
Auto Trait Implementations§
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