Enum dbus_client::MaybeOwned
source · pub enum MaybeOwned<'a, T> {
Owned(T),
Borrowed(&'a T),
}
Variants§
Trait Implementations§
source§impl<T> AsRef<T> for MaybeOwned<'_, T>
impl<T> AsRef<T> for MaybeOwned<'_, T>
source§impl<'a, T> From<&'a T> for MaybeOwned<'a, T>
impl<'a, T> From<&'a T> for MaybeOwned<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for MaybeOwned<'a, T>where
T: Freeze,
impl<'a, T> RefUnwindSafe for MaybeOwned<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for MaybeOwned<'a, T>
impl<'a, T> Sync for MaybeOwned<'a, T>where
T: Sync,
impl<'a, T> Unpin for MaybeOwned<'a, T>where
T: Unpin,
impl<'a, T> UnwindSafe for MaybeOwned<'a, T>where
T: UnwindSafe + RefUnwindSafe,
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