[−][src]Struct genio::std_impls::GenioWrite
Wrapper providing genio::Write
trait for std::io::Write
types.
Methods
impl<W: Write> GenioWrite<W>
[src]
pub fn new(writer: W) -> Self
[src]
Wraps std
writer into genio
writer.
pub fn into_inner(self) -> W
[src]
Unwraps std
writer into genio
writer.
Trait Implementations
impl<W: Write> Write for GenioWrite<W>
[src]
type WriteError = Error
Value of this type is returned when write()
fails. Read more
type FlushError = Error
Value of this type is returned when flush()
fails. In case of low-level writers flush often does nothing and therefore doesn't return error, so this type might be Void. Read more
fn write(&mut self, buf: &[u8]) -> Result<usize, Error>
[src]
fn flush(&mut self) -> Result<(), Error>
[src]
fn size_hint(&mut self, _bytes: usize)
[src]
fn write_all(&mut self, buf: &[u8]) -> Result<(), Self::WriteError>
[src]
fn uses_size_hint(&self) -> bool
[src]
Auto Trait Implementations
impl<W> RefUnwindSafe for GenioWrite<W> where
W: RefUnwindSafe,
W: RefUnwindSafe,
impl<W> Send for GenioWrite<W> where
W: Send,
W: Send,
impl<W> Sync for GenioWrite<W> where
W: Sync,
W: Sync,
impl<W> Unpin for GenioWrite<W> where
W: Unpin,
W: Unpin,
impl<W> UnwindSafe for GenioWrite<W> where
W: UnwindSafe,
W: UnwindSafe,
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>,