pub struct RustexClient { /* private fields */ }Implementations§
Source§impl RustexClient
impl RustexClient
pub async fn new(deployment_url: &str) -> Result<Self>
pub fn from_inner(inner: ConvexClient) -> Self
pub fn inner(&self) -> &ConvexClient
pub fn inner_mut(&mut self) -> &mut ConvexClient
pub fn into_inner(self) -> ConvexClient
pub async fn query<F>(
&mut self,
_function: F,
args: &F::Args,
) -> Result<F::Output, RuntimeError>where
F: QuerySpec,
pub async fn subscribe<F>(
&mut self,
_function: F,
args: &F::Args,
) -> Result<TypedSubscription<F>, RuntimeError>where
F: QuerySpec,
pub async fn mutation<F>(
&mut self,
_function: F,
args: &F::Args,
) -> Result<F::Output, RuntimeError>where
F: MutationSpec,
pub async fn action<F>(
&mut self,
_function: F,
args: &F::Args,
) -> Result<F::Output, RuntimeError>where
F: ActionSpec,
pub fn watch_all(&self) -> QuerySetSubscription
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RustexClient
impl !RefUnwindSafe for RustexClient
impl Send for RustexClient
impl Sync for RustexClient
impl Unpin for RustexClient
impl UnsafeUnpin for RustexClient
impl !UnwindSafe for RustexClient
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