Trait radn::rcore::InCtx

source ·
pub trait InCtx<'a, Ctx: Context<'a>>: Stream {
    // Required methods
    fn icnext_address<E>(
        self,
        err: impl FnOnce(&[u8]) -> E
    ) -> Result<(Address, Self), E>;
    fn iresolver(&self) -> Arc<dyn Resolver<'a, Ctx>>;
    fn demote<'d>(self) -> Demoted<'a, 'd, Ctx>
       where Self: 'd,
             'a: 'd;

    // Provided method
    fn icnext_point<'b, A: MentionableBase<'a>, E>(
        self,
        factory: A::Fctr,
        err: impl FnOnce(&[u8]) -> E
    ) -> Result<(Point<'a, Ctx, A>, Self), E> { ... }
}
Expand description

Inlining (Streamed) context.

Required Methods§

source

fn icnext_address<E>( self, err: impl FnOnce(&[u8]) -> E ) -> Result<(Address, Self), E>

Read the next Address.

source

fn iresolver(&self) -> Arc<dyn Resolver<'a, Ctx>>

Clone the reference to the current Resolver.

source

fn demote<'d>(self) -> Demoted<'a, 'd, Ctx>where Self: 'd, 'a: 'd,

Return Demoted version of the context.

Provided Methods§

source

fn icnext_point<'b, A: MentionableBase<'a>, E>( self, factory: A::Fctr, err: impl FnOnce(&[u8]) -> E ) -> Result<(Point<'a, Ctx, A>, Self), E>

Read the next Point.

Implementors§

source§

impl<'a: 'c, 'c, Ctx: Context<'a>> InCtx<'a, Ctx> for Demoted<'a, 'c, Ctx>