pub struct AsyncNode { /* private fields */ }Expand description
Async VoltDB connection node
Implementations§
Source§impl AsyncNode
impl AsyncNode
Sourcepub async fn new(opt: NodeOpt) -> Result<AsyncNode, VoltError>
pub async fn new(opt: NodeOpt) -> Result<AsyncNode, VoltError>
Create a new async connection to VoltDB server
Sourcepub fn get_sequence(&self) -> i64
pub fn get_sequence(&self) -> i64
Get the next sequence number for request tracking
Sourcepub fn pending_count(&self) -> usize
pub fn pending_count(&self) -> usize
Get the current pending request count (used for load balancing)
Sourcepub async fn list_procedures(&self) -> Result<Receiver<VoltTable>, VoltError>
pub async fn list_procedures(&self) -> Result<Receiver<VoltTable>, VoltError>
List all stored procedures available in the database
Sourcepub async fn call_sp(
&self,
query: &str,
param: Vec<&dyn Value>,
) -> Result<Receiver<VoltTable>, VoltError>
pub async fn call_sp( &self, query: &str, param: Vec<&dyn Value>, ) -> Result<Receiver<VoltTable>, VoltError>
Call a stored procedure with parameters
Sourcepub async fn call_sp_with_timeout(
&self,
query: &str,
param: Vec<&dyn Value>,
_timeout_duration: Duration,
) -> Result<Receiver<VoltTable>, VoltError>
pub async fn call_sp_with_timeout( &self, query: &str, param: Vec<&dyn Value>, _timeout_duration: Duration, ) -> Result<Receiver<VoltTable>, VoltError>
Call a stored procedure with custom timeout
Sourcepub async fn upload_jar(
&self,
bs: Vec<u8>,
) -> Result<Receiver<VoltTable>, VoltError>
pub async fn upload_jar( &self, bs: Vec<u8>, ) -> Result<Receiver<VoltTable>, VoltError>
Upload a JAR file containing stored procedure classes
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AsyncNode
impl !RefUnwindSafe for AsyncNode
impl Send for AsyncNode
impl Sync for AsyncNode
impl Unpin for AsyncNode
impl !UnwindSafe for AsyncNode
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