pub struct SphereContentTranscluder<R, S>{ /* private fields */ }Expand description
A Transcluder implementation that uses HasSphereContext to resolve the content being transcluded.
Implementations§
Source§impl<R, S> SphereContentTranscluder<R, S>
impl<R, S> SphereContentTranscluder<R, S>
Trait Implementations§
Source§impl<R, S> Clone for SphereContentTranscluder<R, S>
impl<R, S> Clone for SphereContentTranscluder<R, S>
Source§fn clone(&self) -> SphereContentTranscluder<R, S>
fn clone(&self) -> SphereContentTranscluder<R, S>
Returns a duplicate 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<R, S> Transcluder for SphereContentTranscluder<R, S>
impl<R, S> Transcluder for SphereContentTranscluder<R, S>
Source§fn transclude<'life0, 'life1, 'async_trait>(
&'life0 self,
link: &'life1 ResolvedLink,
) -> Pin<Box<dyn Future<Output = Result<Option<Transclude>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn transclude<'life0, 'life1, 'async_trait>(
&'life0 self,
link: &'life1 ResolvedLink,
) -> Pin<Box<dyn Future<Output = Result<Option<Transclude>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Given a ResolvedLink, produce a Transclude if it is appropriate to
do so.
Auto Trait Implementations§
impl<R, S> Freeze for SphereContentTranscluder<R, S>where
R: Freeze,
impl<R, S> RefUnwindSafe for SphereContentTranscluder<R, S>where
R: RefUnwindSafe,
S: RefUnwindSafe,
impl<R, S> Send for SphereContentTranscluder<R, S>
impl<R, S> Sync for SphereContentTranscluder<R, S>
impl<R, S> Unpin for SphereContentTranscluder<R, S>
impl<R, S> UnwindSafe for SphereContentTranscluder<R, S>where
R: UnwindSafe,
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