Struct cassandra_cpp::Batch [−][src]
pub struct Batch(_);
Expand description
A group of statements that are executed as a single batch. Note: Batches are not supported by the binary protocol version 1.
Implementations
impl Batch
[src]
impl Batch
[src]pub fn set_consistency(&mut self, consistency: Consistency) -> Result<&mut Self>
[src]
pub fn set_consistency(&mut self, consistency: Consistency) -> Result<&mut Self>
[src]Sets the batch’s consistency level
pub fn set_serial_consistency(
&mut self,
consistency: Consistency
) -> Result<&mut Self>
[src]
pub fn set_serial_consistency(
&mut self,
consistency: Consistency
) -> Result<&mut Self>
[src]Sets the batch’s serial consistency level.
Default: Not set
pub fn set_timestamp(&mut self, timestamp: i64) -> Result<&Self>
[src]
pub fn set_timestamp(&mut self, timestamp: i64) -> Result<&Self>
[src]Sets the batch’s timestamp.
pub fn set_retry_policy(
&mut self,
retry_policy: RetryPolicy
) -> Result<&mut Self>
[src]
pub fn set_retry_policy(
&mut self,
retry_policy: RetryPolicy
) -> Result<&mut Self>
[src]Sets the batch’s retry policy.
pub fn set_custom_payload(
&mut self,
custom_payload: CustomPayload
) -> Result<&mut Self>
[src]
pub fn set_custom_payload(
&mut self,
custom_payload: CustomPayload
) -> Result<&mut Self>
[src]Sets the batch’s custom payload.
pub fn add_statement(&mut self, statement: &Statement) -> Result<&Self>
[src]
pub fn add_statement(&mut self, statement: &Statement) -> Result<&Self>
[src]Adds a statement to a batch.
Trait Implementations
Auto Trait Implementations
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,