Struct geph4_protocol::binder::protocol::BinderClient
source · pub struct BinderClient<T: RpcTransport = DynRpcTransport>(pub T);
Expand description
Automatically generated client type that communicates to servers implementing the BinderProtocol protocol. The easiest way to use this is by using the From<RpcTransport>
implementation.
See the BinderProtocol trait for further documentation on the functionality of the methods..
Tuple Fields§
§0: T
Implementations§
source§impl<__nrpc_T: RpcTransport + Send + Sync + 'static> BinderClient<__nrpc_T>
impl<__nrpc_T: RpcTransport + Send + Sync + 'static> BinderClient<__nrpc_T>
pub async fn authenticate( &self, auth_req: AuthRequest ) -> Result<Result<AuthResponse, AuthError>, BinderError<__nrpc_T::Error>>
pub async fn authenticate_v2( &self, auth_req: AuthRequestV2 ) -> Result<Result<AuthResponseV2, AuthError>, BinderError<__nrpc_T::Error>>
pub async fn get_login_url( &self, credentials: Credentials ) -> Result<Result<String, AuthError>, BinderError<__nrpc_T::Error>>
pub async fn validate( &self, token: BlindToken ) -> Result<bool, BinderError<__nrpc_T::Error>>
pub async fn get_captcha( &self ) -> Result<Result<Captcha, MiscFatalError>, BinderError<__nrpc_T::Error>>
pub async fn register_user( &self, username: SmolStr, password: SmolStr, captcha_id: SmolStr, captcha_soln: SmolStr ) -> Result<Result<(), RegisterError>, BinderError<__nrpc_T::Error>>
pub async fn register_user_v2( &self, credentials: Credentials, captcha_id: SmolStr, captcha_soln: SmolStr ) -> Result<Result<(), RegisterError>, BinderError<__nrpc_T::Error>>
pub async fn delete_user( &self, username: SmolStr, password: SmolStr ) -> Result<Result<(), AuthError>, BinderError<__nrpc_T::Error>>
pub async fn delete_user_v2( &self, credentials: Credentials ) -> Result<Result<(), AuthError>, BinderError<__nrpc_T::Error>>
pub async fn add_bridge_route( &self, descriptor: BridgeDescriptor ) -> Result<Result<(), MiscFatalError>, BinderError<__nrpc_T::Error>>
pub async fn get_summary( &self ) -> Result<MasterSummary, BinderError<__nrpc_T::Error>>
pub async fn get_bridges( &self, token: BlindToken, exit: SmolStr ) -> Result<Vec<BridgeDescriptor>, BinderError<__nrpc_T::Error>>
pub async fn get_bridges_v2( &self, token: BlindToken, exit: SmolStr ) -> Result<Vec<BridgeDescriptor>, BinderError<__nrpc_T::Error>>
pub async fn get_mizaru_pk( &self, level: Level ) -> Result<PublicKey, BinderError<__nrpc_T::Error>>
pub async fn get_mizaru_epoch_key( &self, level: Level, epoch: u16 ) -> Result<RSAPublicKey, BinderError<__nrpc_T::Error>>
pub async fn get_announcements( &self ) -> Result<String, BinderError<__nrpc_T::Error>>
pub async fn reverse_proxy_melnode( &self, req: JrpcRequest ) -> Result<Result<JrpcResponse, RpcError>, BinderError<__nrpc_T::Error>>
pub async fn add_metric( &self, session: i64, data: Value ) -> Result<Result<(), MiscFatalError>, BinderError<__nrpc_T::Error>>
pub async fn get_user_info( &self, auth_req: Credentials ) -> Result<Result<UserInfoV2, AuthError>, BinderError<__nrpc_T::Error>>
Trait Implementations§
Auto Trait Implementations§
impl<T> RefUnwindSafe for BinderClient<T>where T: RefUnwindSafe,
impl<T> Send for BinderClient<T>
impl<T> Sync for BinderClient<T>
impl<T> Unpin for BinderClient<T>where T: Unpin,
impl<T> UnwindSafe for BinderClient<T>where T: UnwindSafe,
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