pub struct UpdatesRelValue<'a> {
pub deletes: Vec<RelValue<'a>>,
pub inserts: Vec<RelValue<'a>>,
}Fields§
§deletes: Vec<RelValue<'a>>§inserts: Vec<RelValue<'a>>Implementations§
Source§impl UpdatesRelValue<'_>
impl UpdatesRelValue<'_>
Sourcepub fn has_updates(&self) -> bool
pub fn has_updates(&self) -> bool
Returns whether there are any updates.
pub fn encode<F: WebsocketFormat>(&self) -> (F::QueryUpdate, u64, usize)
Trait Implementations§
Source§impl<'a> Debug for UpdatesRelValue<'a>
impl<'a> Debug for UpdatesRelValue<'a>
Source§impl<'a> Default for UpdatesRelValue<'a>
impl<'a> Default for UpdatesRelValue<'a>
Source§fn default() -> UpdatesRelValue<'a>
fn default() -> UpdatesRelValue<'a>
Returns the “default value” for a type. Read more
Source§impl<'a> PartialEq for UpdatesRelValue<'a>
impl<'a> PartialEq for UpdatesRelValue<'a>
impl<'a> StructuralPartialEq for UpdatesRelValue<'a>
Auto Trait Implementations§
impl<'a> Freeze for UpdatesRelValue<'a>
impl<'a> !RefUnwindSafe for UpdatesRelValue<'a>
impl<'a> Send for UpdatesRelValue<'a>
impl<'a> Sync for UpdatesRelValue<'a>
impl<'a> Unpin for UpdatesRelValue<'a>
impl<'a> !UnwindSafe for UpdatesRelValue<'a>
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
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 more