pub struct LobWriter { /* private fields */ }Expand description
A byte-oriented lazy writer over a (typically temporary) BLOB locator. Each
write_chunk appends at the running byte cursor.
Implementations§
Source§impl LobWriter
impl LobWriter
Sourcepub fn into_locator(self) -> Vec<u8> ⓘ
pub fn into_locator(self) -> Vec<u8> ⓘ
Consume the writer, returning its locator (e.g. to free the temp LOB).
Sourcepub async fn write_chunk(
&mut self,
conn: &mut Connection,
cx: &Cx,
data: &[u8],
) -> Result<()>
pub async fn write_chunk( &mut self, conn: &mut Connection, cx: &Cx, data: &[u8], ) -> Result<()>
Append data at the current byte cursor. A write may return an updated
locator (temporary LOBs), which is adopted for subsequent writes.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LobWriter
impl RefUnwindSafe for LobWriter
impl Send for LobWriter
impl Sync for LobWriter
impl Unpin for LobWriter
impl UnsafeUnpin for LobWriter
impl UnwindSafe for LobWriter
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).