Struct grab::Input[][src]

pub struct Input { /* fields omitted */ }

Represents some kind of input source which can be read from.

Implementations

impl Input[src]

pub fn builder() -> Builder[src]

This structure cannot be directly created, instead you may create and configure a builder which can then be used to generate Input.

Alternatively, you can use [Config::with_defaults] to parse some input using the default Config.

pub fn with_defaults(input: impl AsRef<str>) -> Result<Self, InputError>[src]

Attempt to locate an input source with the default configuration from the given input

pub fn access(&self) -> Result<InputReader, AccessError>[src]

Attempt to access the input source. Note that this function may block, depending on the what underlying input source is.

Trait Implementations

impl Debug for Input[src]

impl FromStr for Input[src]

type Err = InputError

The associated error which can be returned from parsing.

Auto Trait Implementations

impl RefUnwindSafe for Input

impl Send for Input

impl Sync for Input

impl Unpin for Input

impl UnwindSafe for Input

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Conv for T

impl<T> Conv for T

impl<T> FmtForward for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> TryConv for T

impl<T> TryConv for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.