#[non_exhaustive]pub struct PendingOcrAdapter { /* private fields */ }Expand description
Reserved fail-loud adapter.
Used as an explicit “no backend wired” sentinel. Every call returns
DocumentError::NotImplemented so accidental wiring is caught at the
call site (Axis 1 fail-closed).
Implementations§
Source§impl PendingOcrAdapter
impl PendingOcrAdapter
Sourcepub fn new() -> Result<Self, DocumentError>
pub fn new() -> Result<Self, DocumentError>
Build the fail-loud adapter.
§Errors
Always returns DocumentError::NotImplemented. The placeholder
exists so adopters wiring a trait object without a concrete backend
fail at construction time rather than receiving silent zero-output
(Axis 1 fail-closed).
Trait Implementations§
Source§impl OcrAdapter for PendingOcrAdapter
impl OcrAdapter for PendingOcrAdapter
Source§fn extract_text(&self, _bytes: &[u8]) -> Result<String, DocumentError>
fn extract_text(&self, _bytes: &[u8]) -> Result<String, DocumentError>
Extract textual content from
_bytes (raw image / page payload). Read moreAuto Trait Implementations§
impl Freeze for PendingOcrAdapter
impl RefUnwindSafe for PendingOcrAdapter
impl Send for PendingOcrAdapter
impl Sync for PendingOcrAdapter
impl Unpin for PendingOcrAdapter
impl UnsafeUnpin for PendingOcrAdapter
impl UnwindSafe for PendingOcrAdapter
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> 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