pub enum CompressableQueryUpdate<F>where
F: WebsocketFormat,{
Uncompressed(QueryUpdate<F>),
Brotli(Bytes),
Gzip(Bytes),
}Variants§
Implementations§
Source§impl<F> CompressableQueryUpdate<F>where
F: WebsocketFormat,
impl<F> CompressableQueryUpdate<F>where
F: WebsocketFormat,
Sourcepub fn is_uncompressed(&self) -> bool
pub fn is_uncompressed(&self) -> bool
Returns true if this is a CompressableQueryUpdate::Uncompressed, otherwise false
Sourcepub fn as_uncompressed_mut(&mut self) -> Option<&mut QueryUpdate<F>>
pub fn as_uncompressed_mut(&mut self) -> Option<&mut QueryUpdate<F>>
Optionally returns mutable references to the inner fields if this is a CompressableQueryUpdate::Uncompressed, otherwise None
Sourcepub fn as_uncompressed(&self) -> Option<&QueryUpdate<F>>
pub fn as_uncompressed(&self) -> Option<&QueryUpdate<F>>
Optionally returns references to the inner fields if this is a CompressableQueryUpdate::Uncompressed, otherwise None
Sourcepub fn into_uncompressed(
self,
) -> Result<QueryUpdate<F>, CompressableQueryUpdate<F>>
pub fn into_uncompressed( self, ) -> Result<QueryUpdate<F>, CompressableQueryUpdate<F>>
Returns the inner fields if this is a CompressableQueryUpdate::Uncompressed, otherwise returns back the enum in the Err case of the result
Sourcepub fn is_brotli(&self) -> bool
pub fn is_brotli(&self) -> bool
Returns true if this is a CompressableQueryUpdate::Brotli, otherwise false
Sourcepub fn as_brotli_mut(&mut self) -> Option<&mut Bytes>
pub fn as_brotli_mut(&mut self) -> Option<&mut Bytes>
Optionally returns mutable references to the inner fields if this is a CompressableQueryUpdate::Brotli, otherwise None
Sourcepub fn as_brotli(&self) -> Option<&Bytes>
pub fn as_brotli(&self) -> Option<&Bytes>
Optionally returns references to the inner fields if this is a CompressableQueryUpdate::Brotli, otherwise None
Sourcepub fn into_brotli(self) -> Result<Bytes, CompressableQueryUpdate<F>>
pub fn into_brotli(self) -> Result<Bytes, CompressableQueryUpdate<F>>
Returns the inner fields if this is a CompressableQueryUpdate::Brotli, otherwise returns back the enum in the Err case of the result
Sourcepub fn is_gzip(&self) -> bool
pub fn is_gzip(&self) -> bool
Returns true if this is a CompressableQueryUpdate::Gzip, otherwise false
Sourcepub fn as_gzip_mut(&mut self) -> Option<&mut Bytes>
pub fn as_gzip_mut(&mut self) -> Option<&mut Bytes>
Optionally returns mutable references to the inner fields if this is a CompressableQueryUpdate::Gzip, otherwise None
Sourcepub fn as_gzip(&self) -> Option<&Bytes>
pub fn as_gzip(&self) -> Option<&Bytes>
Optionally returns references to the inner fields if this is a CompressableQueryUpdate::Gzip, otherwise None
Sourcepub fn into_gzip(self) -> Result<Bytes, CompressableQueryUpdate<F>>
pub fn into_gzip(self) -> Result<Bytes, CompressableQueryUpdate<F>>
Returns the inner fields if this is a CompressableQueryUpdate::Gzip, otherwise returns back the enum in the Err case of the result
Source§impl CompressableQueryUpdate<BsatnFormat>
impl CompressableQueryUpdate<BsatnFormat>
pub fn maybe_decompress(self) -> QueryUpdate<BsatnFormat>
Trait Implementations§
Source§impl<F> Clone for CompressableQueryUpdate<F>where
F: Clone + WebsocketFormat,
impl<F> Clone for CompressableQueryUpdate<F>where
F: Clone + WebsocketFormat,
Source§fn clone(&self) -> CompressableQueryUpdate<F>
fn clone(&self) -> CompressableQueryUpdate<F>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<F> Debug for CompressableQueryUpdate<F>where
F: Debug + WebsocketFormat,
impl<F> Debug for CompressableQueryUpdate<F>where
F: Debug + WebsocketFormat,
Source§impl<'de, F> Deserialize<'de> for CompressableQueryUpdate<F>where
F: WebsocketFormat + Deserialize<'de>,
impl<'de, F> Deserialize<'de> for CompressableQueryUpdate<F>where
F: WebsocketFormat + Deserialize<'de>,
Source§fn deserialize<D>(
deserializer: D,
) -> Result<CompressableQueryUpdate<F>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<CompressableQueryUpdate<F>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
deserializer.Source§impl<F> Serialize for CompressableQueryUpdate<F>where
F: WebsocketFormat + Serialize,
impl<F> Serialize for CompressableQueryUpdate<F>where
F: WebsocketFormat + Serialize,
Source§fn serialize<S>(
&self,
__serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
__serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
self in the data format of S using the provided serializer.Source§impl<F> SpacetimeType for CompressableQueryUpdate<F>where
F: WebsocketFormat + SpacetimeType + 'static,
impl<F> SpacetimeType for CompressableQueryUpdate<F>where
F: WebsocketFormat + SpacetimeType + 'static,
Source§fn make_type<S>(__typespace: &mut S) -> AlgebraicTypewhere
S: TypespaceBuilder,
fn make_type<S>(__typespace: &mut S) -> AlgebraicTypewhere
S: TypespaceBuilder,
AlgebraicType representing the type for Self in SATS
and in the typing context in typespace. This is used by the
automatic type registration system in Rust modules. Read moreAuto Trait Implementations§
impl<F> !Freeze for CompressableQueryUpdate<F>
impl<F> RefUnwindSafe for CompressableQueryUpdate<F>
impl<F> Send for CompressableQueryUpdate<F>
impl<F> Sync for CompressableQueryUpdate<F>
impl<F> Unpin for CompressableQueryUpdate<F>
impl<F> UnwindSafe for CompressableQueryUpdate<F>
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
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: 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>
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>
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> Pointable for T
impl<T> Pointable for T
Source§impl<T> Satn for T
impl<T> Satn for T
Source§fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>
fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>
f.Source§fn fmt_psql(
&self,
f: &mut Formatter<'_>,
ty: &PsqlType<'_>,
) -> Result<(), Error>
fn fmt_psql( &self, f: &mut Formatter<'_>, ty: &PsqlType<'_>, ) -> Result<(), Error>
f.Source§fn to_satn(&self) -> String
fn to_satn(&self) -> String
String.Source§fn to_satn_pretty(&self) -> String
fn to_satn_pretty(&self) -> String
String.