pub struct RoflClient { /* private fields */ }Implementations§
Source§impl RoflClient
impl RoflClient
pub fn new() -> Result<Self, Box<dyn Error>>
pub fn with_socket_path<P: AsRef<Path>>( socket_path: P, ) -> Result<Self, Box<dyn Error>>
pub async fn get_app_id(&self) -> Result<String, Box<dyn Error>>
pub async fn generate_key( &self, key_id: &str, kind: KeyKind, ) -> Result<String, Box<dyn Error>>
pub async fn sign_submit( &self, tx: Tx, encrypt: Option<bool>, ) -> Result<String, Box<dyn Error>>
pub async fn get_metadata( &self, ) -> Result<HashMap<String, String>, Box<dyn Error>>
pub async fn set_metadata( &self, metadata: &HashMap<String, String>, ) -> Result<(), Box<dyn Error>>
pub async fn query( &self, method: &str, args: &[u8], ) -> Result<Vec<u8>, Box<dyn Error>>
Trait Implementations§
Source§impl Clone for RoflClient
impl Clone for RoflClient
Source§fn clone(&self) -> RoflClient
fn clone(&self) -> RoflClient
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RoflClient
impl RefUnwindSafe for RoflClient
impl Send for RoflClient
impl Sync for RoflClient
impl Unpin for RoflClient
impl UnwindSafe for RoflClient
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