pub struct Owner {
pub file: PathBuf,
pub document: Result<Document>,
}Expand description
The document that owns a page: the nearest site whose folder holds it, as its file reads now — or why it can’t be read.
Fields§
§file: PathBufThe site’s document file.
document: Result<Document>The site’s document as its file reads now, or why it can’t be read.
Auto Trait Implementations§
impl Forget for Owner
impl Freeze for Ownerwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Binding>: Freeze,
PhantomData<PathBuf>: Freeze,
PhantomData<Slide>: Freeze,
PhantomData<String>: Freeze,
PhantomData<GlobSetMatchStrategy>: Freeze,
PhantomData<Suite>: Freeze,
PhantomData<NavItem>: Freeze,
*const ErrorImpl is !null: Freeze,
impl Move for Owner
impl RefUnwindSafe for Ownerwhere
Atomic<usize>: RefUnwindSafe,
Mutex<State>: RefUnwindSafe,
Pool<Cache, Box<dyn Fn() -> Cache + Sync + RefUnwindSafe + UnwindSafe + Send>>: RefUnwindSafe,
Pool<PatternSet, Box<dyn Fn() -> PatternSet + Sync + RefUnwindSafe + UnwindSafe + Send>>: RefUnwindSafe,
Error: RefUnwindSafe,
impl Send for Ownerwhere
RawVecInner: Send,
Arc<Mutex<State>>: Send,
RawTable<(Vec<u8>, Vec<usize>)>: Send,
Arc<dyn AcAutomaton>: Send,
RawTable<(Vec<u8>, Vec<(usize, Regex)>)>: Send,
Arc<RegexI>: Send,
BoxRaw<Pool<Cache, Box<dyn Fn() -> Cache + Sync + RefUnwindSafe + UnwindSafe + Send>>>: Send,
Arc<Pool<PatternSet, Box<dyn Fn() -> PatternSet + Sync + RefUnwindSafe + UnwindSafe + Send>>>: Send,
Arc<str>: Send,
Own<ErrorImpl>: Send,
impl Sync for Ownerwhere
RawVecInner: Sync,
Arc<Mutex<State>>: Sync,
RawTable<(Vec<u8>, Vec<usize>)>: Sync,
Arc<dyn AcAutomaton>: Sync,
RawTable<(Vec<u8>, Vec<(usize, Regex)>)>: Sync,
Arc<RegexI>: Sync,
BoxRaw<Pool<Cache, Box<dyn Fn() -> Cache + Sync + RefUnwindSafe + UnwindSafe + Send>>>: Sync,
Arc<Pool<PatternSet, Box<dyn Fn() -> PatternSet + Sync + RefUnwindSafe + UnwindSafe + Send>>>: Sync,
Arc<str>: Sync,
Own<ErrorImpl>: Sync,
impl Unpin for Ownerwhere
*const u8 is !null: Unpin,
Arc<Mutex<State>>: Unpin,
Arc<dyn AcAutomaton>: Unpin,
Arc<RegexI>: Unpin,
Box<Pool<Cache, Box<dyn Fn() -> Cache + Sync + RefUnwindSafe + UnwindSafe + Send>>>: Unpin,
Arc<Pool<PatternSet, Box<dyn Fn() -> PatternSet + Sync + RefUnwindSafe + UnwindSafe + Send>>>: Unpin,
Arc<str>: Unpin,
*const ErrorImpl is !null: Unpin,
impl UnsafeUnpin for Ownerwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Binding>: UnsafeUnpin,
PhantomData<PathBuf>: UnsafeUnpin,
PhantomData<Slide>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<GlobSetMatchStrategy>: UnsafeUnpin,
PhantomData<Suite>: UnsafeUnpin,
PhantomData<NavItem>: UnsafeUnpin,
*const ErrorImpl is !null: UnsafeUnpin,
impl UnwindSafe for Ownerwhere
RawVecInner: UnwindSafe,
Arc<Mutex<State>>: UnwindSafe,
HashMap<Vec<u8>, Vec<usize>, BuildHasherDefault<Hasher>>: UnwindSafe,
Arc<dyn AcAutomaton>: UnwindSafe,
HashMap<Vec<u8>, Vec<(usize, Regex)>, BuildHasherDefault<Hasher>>: UnwindSafe,
Arc<RegexI>: UnwindSafe,
BoxRaw<Pool<Cache, Box<dyn Fn() -> Cache + Sync + RefUnwindSafe + UnwindSafe + Send>>>: UnwindSafe,
Arc<Pool<PatternSet, Box<dyn Fn() -> PatternSet + Sync + RefUnwindSafe + UnwindSafe + Send>>>: UnwindSafe,
Arc<str>: UnwindSafe,
Error: 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> Fruit for T
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