pub struct StrusonBackend<W: Write> { /* private fields */ }Expand description
Adapter wrapping struson::JsonStreamWriter<W>.
Forwards each JsonBackend method to the corresponding struson API call.
Errors from struson are converted to docspec_core::Error::Io.
Implementations§
Trait Implementations§
Source§impl<W: Write> JsonBackend for StrusonBackend<W>
impl<W: Write> JsonBackend for StrusonBackend<W>
Source§type Output = W
type Output = W
Type returned by
JsonBackend::finish.Auto Trait Implementations§
impl<W> Freeze for StrusonBackend<W>where
W: Freeze,
impl<W> RefUnwindSafe for StrusonBackend<W>where
W: RefUnwindSafe,
impl<W> Send for StrusonBackend<W>where
W: Send,
impl<W> Sync for StrusonBackend<W>where
W: Sync,
impl<W> Unpin for StrusonBackend<W>where
W: Unpin,
impl<W> UnsafeUnpin for StrusonBackend<W>where
W: UnsafeUnpin,
impl<W> UnwindSafe for StrusonBackend<W>where
W: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more