[][src]Struct tgbot::types::InputFileReader

pub struct InputFileReader { /* fields omitted */ }

File reader to upload

Methods

impl InputFileReader[src]

pub fn new<R>(reader: R) -> Self where
    R: Read + Send + 'static, 
[src]

Creates a new file reader

pub fn info<I: Into<InputFileInfo>>(self, info: I) -> Self[src]

Sets a file info

Trait Implementations

impl Debug for InputFileReader[src]

impl From<InputFileReader> for InputFile[src]

impl<R> From<R> for InputFileReader where
    R: Read + Send + 'static, 
[src]

Auto Trait Implementations

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> From<T> for T[src]

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

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.