[−][src]Struct tgbot::types::InputFileReader
File reader to upload
Methods
impl InputFileReader
[src]
pub fn new<R>(reader: R) -> Self where
R: Read + Send + 'static,
[src]
R: Read + Send + 'static,
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]
fn from(reader: InputFileReader) -> Self
[src]
impl<R> From<R> for InputFileReader where
R: Read + Send + 'static,
[src]
R: Read + Send + 'static,
Auto Trait Implementations
impl !RefUnwindSafe for InputFileReader
impl Send for InputFileReader
impl !Sync for InputFileReader
impl Unpin for InputFileReader
impl !UnwindSafe for InputFileReader
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,