[−][src]Struct market::ByteWriter
Produces bytes to a writer of type W
.
Methods
impl<W> ByteWriter<W>
[src]
pub const fn new(writer: W) -> Self
[src]
Creates a new ByteWriter
.
Trait Implementations
impl<W: Debug> Debug for ByteWriter<W>
[src]
impl<W> Producer for ByteWriter<W> where
W: Write,
[src]
W: Write,
type Good = u8
The item being produced.
type Error = Error
The error when Self
is not functional. Read more
fn produce(&self, good: Self::Good) -> Result<Option<Self::Good>, Self::Error>
[src]
fn produce_all(
&self,
goods: Vec<Self::Good>
) -> Result<Vec<Self::Good>, Self::Error>
[src]
&self,
goods: Vec<Self::Good>
) -> Result<Vec<Self::Good>, Self::Error>
fn force(&self, good: Self::Good) -> Result<(), Self::Error>
[src]
Auto Trait Implementations
impl<W> !RefUnwindSafe for ByteWriter<W>
impl<W> Send for ByteWriter<W> where
W: Send,
W: Send,
impl<W> !Sync for ByteWriter<W>
impl<W> Unpin for ByteWriter<W> where
W: Unpin,
W: Unpin,
impl<W> UnwindSafe for ByteWriter<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>,