Struct r3::sync::source::DefaultSource
source · pub struct DefaultSource<T>(_);
Available on crate feature
sync
only.Expand description
A Source
that provides a hunk initialized by
Default::default
.
Trait Implementations
sourceimpl<T> Init for DefaultSource<T>
impl<T> Init for DefaultSource<T>
sourceimpl<System, T> Source<System> for DefaultSource<T>where
System: KernelBase + KernelStatic,
T: 'static + Default + Send,
impl<System, T> Source<System> for DefaultSource<T>where
System: KernelBase + KernelStatic,
T: 'static + Default + Send,
type Target = T
sourceconst fn into_unsafe_cell_hunk<C>(
self,
cfg: &mut Cfg<'_, C>
) -> Hunk<System, UnsafeCell<MaybeUninit<Self::Target>>>where
C: CfgBase<System = System>,
const fn into_unsafe_cell_hunk<C>(
self,
cfg: &mut Cfg<'_, C>
) -> Hunk<System, UnsafeCell<MaybeUninit<Self::Target>>>where
C: CfgBase<System = System>,
Construct a
Hunk
to store the value. Read moreAuto Trait Implementations
impl<T> RefUnwindSafe for DefaultSource<T>where
T: RefUnwindSafe,
impl<T> Send for DefaultSource<T>where
T: Send,
impl<T> Sync for DefaultSource<T>where
T: Sync,
impl<T> Unpin for DefaultSource<T>where
T: Unpin,
impl<T> UnwindSafe for DefaultSource<T>where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more