pub struct CliqueClient { /* private fields */ }
Implementations§
Source§impl CliqueClient
impl CliqueClient
pub fn new( endpoint: &str, trusted_enclaves: Option<Vec<String>>, trusted_signers: Option<Vec<String>>, ) -> Result<Self>
pub fn with_config( endpoint: &str, polling_interval: Duration, retry_num: u32, allow_exist_query: bool, trusted_enclaves: Option<Vec<String>>, trusted_signers: Option<Vec<String>>, ) -> Result<Self>
pub async fn run_query(&self, json_query: Value) -> Result<Value>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CliqueClient
impl !RefUnwindSafe for CliqueClient
impl Send for CliqueClient
impl Sync for CliqueClient
impl Unpin for CliqueClient
impl !UnwindSafe for CliqueClient
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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