pub struct LiveUpdateProxyDBSetter<T>(/* private fields */);Available on crate feature
live-update only.Expand description
Writer to set a new ProxyDB in the linked LiveUpdateProxyDB.
There can only be one writer LiveUpdateProxyDBSetter for each
collection of LiveUpdateProxyDB linked to the same internal data T.
See proxy_db_updater for more details.
Implementations§
Source§impl<T> LiveUpdateProxyDBSetter<T>
impl<T> LiveUpdateProxyDBSetter<T>
Sourcepub fn set(&self, db: T)
pub fn set(&self, db: T)
Set the new T ProxyDB to be used for future ProxyDB
calls made to the linked LiveUpdateProxyDB instances.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for LiveUpdateProxyDBSetter<T>
impl<T> RefUnwindSafe for LiveUpdateProxyDBSetter<T>where
T: RefUnwindSafe,
impl<T> Send for LiveUpdateProxyDBSetter<T>
impl<T> Sync for LiveUpdateProxyDBSetter<T>
impl<T> Unpin for LiveUpdateProxyDBSetter<T>
impl<T> UnsafeUnpin for LiveUpdateProxyDBSetter<T>
impl<T> UnwindSafe for LiveUpdateProxyDBSetter<T>where
T: 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more