pub struct Importer<'a, R, U> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<'a, R: Resolve, U> Resolve for Importer<'a, R, U>
impl<'a, R: Resolve, U> Resolve for Importer<'a, R, U>
fn get<T: Object + DataSize>(&self, r: Ref<T>) -> Result<RcRef<T>>
fn get_data_or_decode( &self, id: PlainRef, range: Range<usize>, filters: &[StreamFilter], ) -> Result<Arc<[u8]>>
fn options(&self) -> &ParseOptions
fn resolve(&self, r: PlainRef) -> Result<Primitive>
fn resolve_flags( &self, r: PlainRef, flags: ParseFlags, depth: usize, ) -> Result<Primitive>
fn stream_data(&self, id: PlainRef, range: Range<usize>) -> Result<Arc<[u8]>>
Source§impl<'a, R, U: Updater> Updater for Importer<'a, R, U>
impl<'a, R, U: Updater> Updater for Importer<'a, R, U>
fn create<T: ObjectWrite>(&mut self, obj: T) -> Result<RcRef<T>>
fn fulfill<T: ObjectWrite>( &mut self, promise: PromisedRef<T>, obj: T, ) -> Result<RcRef<T>>
fn promise<T: Object>(&mut self) -> PromisedRef<T>
fn update<T: ObjectWrite>(&mut self, old: PlainRef, obj: T) -> Result<RcRef<T>>
Auto Trait Implementations§
impl<'a, R, U> Freeze for Importer<'a, R, U>where
R: Freeze,
impl<'a, R, U> !RefUnwindSafe for Importer<'a, R, U>
impl<'a, R, U> Send for Importer<'a, R, U>
impl<'a, R, U> Sync for Importer<'a, R, U>
impl<'a, R, U> Unpin for Importer<'a, R, U>where
R: Unpin,
impl<'a, R, U> !UnwindSafe for Importer<'a, R, U>
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
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