pub struct BatchEnvelope<P> { /* private fields */ }Expand description
Side metadata for one emitted SQL batch.
Implementations§
Source§impl<P> BatchEnvelope<P>
impl<P> BatchEnvelope<P>
Sourcepub const fn new(source_position: P, schema_revision: u64) -> Self
pub const fn new(source_position: P, schema_revision: u64) -> Self
Creates a batch envelope from source position metadata and schema revision.
Sourcepub const fn source_position(&self) -> &P
pub const fn source_position(&self) -> &P
Returns the source position metadata.
Sourcepub const fn schema_revision(&self) -> u64
pub const fn schema_revision(&self) -> u64
Returns the schema revision associated with the batch.
Sourcepub fn into_source_position(self) -> P
pub fn into_source_position(self) -> P
Consumes the envelope and returns the source position metadata.
Trait Implementations§
Source§impl<P: Clone> Clone for BatchEnvelope<P>
impl<P: Clone> Clone for BatchEnvelope<P>
Source§fn clone(&self) -> BatchEnvelope<P>
fn clone(&self) -> BatchEnvelope<P>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<P: Debug> Debug for BatchEnvelope<P>
impl<P: Debug> Debug for BatchEnvelope<P>
impl<P: Eq> Eq for BatchEnvelope<P>
Source§impl<P: PartialEq> PartialEq for BatchEnvelope<P>
impl<P: PartialEq> PartialEq for BatchEnvelope<P>
impl<P: PartialEq> StructuralPartialEq for BatchEnvelope<P>
Auto Trait Implementations§
impl<P> Freeze for BatchEnvelope<P>where
P: Freeze,
impl<P> RefUnwindSafe for BatchEnvelope<P>where
P: RefUnwindSafe,
impl<P> Send for BatchEnvelope<P>where
P: Send,
impl<P> Sync for BatchEnvelope<P>where
P: Sync,
impl<P> Unpin for BatchEnvelope<P>where
P: Unpin,
impl<P> UnsafeUnpin for BatchEnvelope<P>where
P: UnsafeUnpin,
impl<P> UnwindSafe for BatchEnvelope<P>where
P: UnwindSafe,
Blanket Implementations§
impl<T> Allocation for T
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Message for T
impl<T> Message for T
Source§fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
Convert a BoxedMessage to this concrete type
Source§fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
Convert this message to a BoxedMessage