pub struct InCtxDef<'a, I, T>where
T: Clone,{
pub transmitter: Cow<'a, T>,
pub input: &'a I,
pub logger: SpanLogger,
/* private fields */
}Fields§
§transmitter: Cow<'a, T>§input: &'a I§logger: SpanLoggerImplementations§
Source§impl<'a, I> InCtxDef<'a, I, ProtoTransmitterDef<AsyncRouter, Exchanger>>
impl<'a, I> InCtxDef<'a, I, ProtoTransmitterDef<AsyncRouter, Exchanger>>
Source§impl<'a, I> InCtxDef<'a, I, ProtoTransmitterDef<SyncRouter, ()>>
impl<'a, I> InCtxDef<'a, I, ProtoTransmitterDef<SyncRouter, ()>>
Source§impl<'a, I, T> InCtxDef<'a, I, T>where
T: Clone,
impl<'a, I, T> InCtxDef<'a, I, T>where
T: Clone,
pub fn new( root: &'a RootInCtxDef<T>, input: &'a I, tx: Cow<'a, T>, logger: SpanLogger, ) -> Self
pub fn from(&self) -> &Surface
pub fn to(&self) -> &Surface
pub fn push(self) -> InCtxDef<'a, I, T>
pub fn push_input_ref<I2>(self, input: &'a I2) -> InCtxDef<'a, I2, T>
pub fn wave(&self) -> &DirectedWave
pub fn ok_body(self, substance: Substance) -> ReflectedCore
pub fn not_found(self) -> ReflectedCore
pub fn forbidden(self) -> ReflectedCore
pub fn bad_request(self) -> ReflectedCore
pub fn err(self, err: SpaceErr) -> ReflectedCore
Trait Implementations§
Auto Trait Implementations§
impl<'a, I, T> Freeze for InCtxDef<'a, I, T>where
T: Freeze,
impl<'a, I, T> !RefUnwindSafe for InCtxDef<'a, I, T>
impl<'a, I, T> Send for InCtxDef<'a, I, T>
impl<'a, I, T> Sync for InCtxDef<'a, I, T>
impl<'a, I, T> Unpin for InCtxDef<'a, I, T>where
T: Unpin,
impl<'a, I, T> !UnwindSafe for InCtxDef<'a, I, T>
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<I, T> ExtractContext<I, ()> for T
impl<I, T> ExtractContext<I, ()> for T
Source§fn extract_context(self, _original_input: I)
fn extract_context(self, _original_input: I)
Given the context attached to a nom error, and given the original
input to the nom parser, extract more the useful context information. Read more
Source§impl<I> RecreateContext<I> for I
impl<I> RecreateContext<I> for I
Source§fn recreate_context(_original_input: I, tail: I) -> I
fn recreate_context(_original_input: I, tail: I) -> I
Given the original input, as well as the context reported by nom,
recreate a context in the original string where the error occurred. Read more