pub struct Query(pub Vec<u8>);Expand description
The query frame structure.
Tuple Fields§
§0: Vec<u8>Implementations§
Source§impl Query
impl Query
Sourcepub fn new() -> QueryBuilder<QueryStatement>
pub fn new() -> QueryBuilder<QueryStatement>
Create CQL query by following the cql binary v4 specs
Sourcepub fn with_capacity(capacity: usize) -> QueryBuilder<QueryStatement>
pub fn with_capacity(capacity: usize) -> QueryBuilder<QueryStatement>
Create CQL query with_capacity by following the cql binary v4 specs
Source§impl Query
impl Query
Sourcepub fn from_payload_unchecked(payload: Vec<u8>) -> Query
pub fn from_payload_unchecked(payload: Vec<u8>) -> Query
Create a Query from a payload without validating it. This assumes that the user knows for certain that the payload is a valid Query payload. Otherwise, using it as one will likely cause panics.
Sourcepub fn convert_to_execute(&mut self) -> Result<&mut Self>
pub fn convert_to_execute(&mut self) -> Result<&mut Self>
Convert a Query frame into an Execute frame. Will return an error if the frame is not a Query frame.
Sourcepub fn convert_to_query(&mut self, stmt: &str) -> Result<&mut Query>
pub fn convert_to_query(&mut self, stmt: &str) -> Result<&mut Query>
Convert an Execute frame into a Query frame. Will return an error if the frame is not an Execute frame.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Query
impl RefUnwindSafe for Query
impl Send for Query
impl Sync for Query
impl Unpin for Query
impl UnwindSafe for Query
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<E, T, const C: usize> ChannelBuilder<AbortableBoundedChannel<E, C>> for T
impl<E, T, const C: usize> ChannelBuilder<AbortableBoundedChannel<E, C>> for T
Source§fn build_channel<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<AbortableBoundedChannel<E, C>, ActorError>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn build_channel<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<AbortableBoundedChannel<E, C>, ActorError>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
Implement how to build the channel for the corresponding actor
Source§impl<E, T> ChannelBuilder<AbortableUnboundedChannel<E>> for T
impl<E, T> ChannelBuilder<AbortableUnboundedChannel<E>> for T
Source§fn build_channel<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<AbortableUnboundedChannel<E>, ActorError>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn build_channel<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<AbortableUnboundedChannel<E>, ActorError>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
Implement how to build the channel for the corresponding actor
Source§impl<E, T, const C: usize> ChannelBuilder<BoundedChannel<E, C>> for Twhere
E: ShutdownEvent + 'static,
T: Send,
impl<E, T, const C: usize> ChannelBuilder<BoundedChannel<E, C>> for Twhere
E: ShutdownEvent + 'static,
T: Send,
Source§fn build_channel<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<BoundedChannel<E, C>, ActorError>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn build_channel<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<BoundedChannel<E, C>, ActorError>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
Implement how to build the channel for the corresponding actor
Source§impl<T, const I: u64> ChannelBuilder<IntervalChannel<I>> for Twhere
T: Send,
impl<T, const I: u64> ChannelBuilder<IntervalChannel<I>> for Twhere
T: Send,
Source§fn build_channel<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<IntervalChannel<I>, ActorError>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn build_channel<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<IntervalChannel<I>, ActorError>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
Implement how to build the channel for the corresponding actor
Source§impl<T, C, B> ChannelBuilder<Marker<C, B>> for T
impl<T, C, B> ChannelBuilder<Marker<C, B>> for T
Source§fn build_channel<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<Marker<C, B>, ActorError>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn build_channel<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<Marker<C, B>, ActorError>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
Implement how to build the channel for the corresponding actor
Source§impl<T> ChannelBuilder<NullChannel> for Twhere
T: Send,
impl<T> ChannelBuilder<NullChannel> for Twhere
T: Send,
Source§fn build_channel<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<NullChannel, ActorError>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn build_channel<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<NullChannel, ActorError>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
Implement how to build the channel for the corresponding actor
Source§impl<E, T> ChannelBuilder<UnboundedChannel<E>> for Twhere
E: ShutdownEvent + 'static,
T: Send,
impl<E, T> ChannelBuilder<UnboundedChannel<E>> for Twhere
E: ShutdownEvent + 'static,
T: Send,
Source§fn build_channel<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<UnboundedChannel<E>, ActorError>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn build_channel<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<UnboundedChannel<E>, ActorError>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
Implement how to build the channel for the corresponding actor