Struct distill_loader::handle::SerdeContext [−][src]
Used to make some limited Loader interactions available to serde
Serialize/Deserialize
implementations by using thread-local storage. Required to support Serialize/Deserialize of Handle.
Implementations
impl SerdeContext
[src]
pub fn with_active<R>(
f: impl FnOnce(&dyn LoaderInfoProvider, &Sender<RefOp>) -> R
) -> R
[src]
f: impl FnOnce(&dyn LoaderInfoProvider, &Sender<RefOp>) -> R
) -> R
pub async fn with<F>(
loader: &dyn LoaderInfoProvider,
sender: Sender<RefOp>,
f: F
) -> F::Output where
F: Future,
[src]
loader: &dyn LoaderInfoProvider,
sender: Sender<RefOp>,
f: F
) -> F::Output where
F: Future,
Auto Trait Implementations
impl RefUnwindSafe for SerdeContext
impl Send for SerdeContext
impl Sync for SerdeContext
impl Unpin for SerdeContext
impl UnwindSafe for SerdeContext
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,