pub struct RelayClient { /* private fields */ }
Implementations§
Source§impl RelayClient
impl RelayClient
pub fn new(server_url: String, auth_token: Option<String>) -> ApiResult<Self>
pub fn fetch_addresses(&self) -> ApiResult<Vec<RelayAddress>>
pub fn accept_terms(&self) -> ApiResult<()>
pub fn create_address( &self, description: &str, generated_for: &str, used_on: &str, ) -> ApiResult<RelayAddress>
Trait Implementations§
Source§impl<UT> LiftRef<UT> for RelayClient
impl<UT> LiftRef<UT> for RelayClient
type LiftType = Arc<RelayClient>
Source§impl<UT> LowerError<UT> for RelayClient
impl<UT> LowerError<UT> for RelayClient
Source§fn lower_error(obj: Self) -> RustBuffer
fn lower_error(obj: Self) -> RustBuffer
Lower this value for scaffolding function return Read more
Source§impl<UT> LowerReturn<UT> for RelayClient
impl<UT> LowerReturn<UT> for RelayClient
Source§type ReturnType = <Arc<RelayClient> as LowerReturn<UniFfiTag>>::ReturnType
type ReturnType = <Arc<RelayClient> as LowerReturn<UniFfiTag>>::ReturnType
The type that should be returned by scaffolding functions for this type. Read more
Source§fn lower_return(obj: Self) -> Result<Self::ReturnType, RustCallError>
fn lower_return(obj: Self) -> Result<Self::ReturnType, RustCallError>
Lower the return value from an scaffolding call Read more
§fn handle_failed_lift(
error: LiftArgsError,
) -> Result<Self::ReturnType, RustCallError>
fn handle_failed_lift( error: LiftArgsError, ) -> Result<Self::ReturnType, RustCallError>
Lower the return value for failed argument lifts Read more
Source§impl<UT> TypeId<UT> for RelayClient
impl<UT> TypeId<UT> for RelayClient
const TYPE_ID_META: MetadataBuffer
Auto Trait Implementations§
impl Freeze for RelayClient
impl RefUnwindSafe for RelayClient
impl Send for RelayClient
impl Sync for RelayClient
impl Unpin for RelayClient
impl UnwindSafe for RelayClient
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
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<>
Read more