pub struct SudoClient { /* private fields */ }
Expand description
Client for managing sudo operations in the Gevulot system.
Implementations§
Source§impl SudoClient
impl SudoClient
Sourcepub fn new(base_client: Arc<RwLock<BaseClient>>) -> Self
pub fn new(base_client: Arc<RwLock<BaseClient>>) -> Self
Sourcepub async fn delete_pin(
&mut self,
msg: MsgSudoDeletePin,
) -> Result<MsgSudoDeletePinResponse>
pub async fn delete_pin( &mut self, msg: MsgSudoDeletePin, ) -> Result<MsgSudoDeletePinResponse>
Sourcepub async fn delete_worker(
&mut self,
msg: MsgSudoDeleteWorker,
) -> Result<MsgSudoDeleteWorkerResponse>
pub async fn delete_worker( &mut self, msg: MsgSudoDeleteWorker, ) -> Result<MsgSudoDeleteWorkerResponse>
Sourcepub async fn delete_task(
&mut self,
msg: MsgSudoDeleteTask,
) -> Result<MsgSudoDeleteTaskResponse>
pub async fn delete_task( &mut self, msg: MsgSudoDeleteTask, ) -> Result<MsgSudoDeleteTaskResponse>
Sourcepub async fn freeze_account(
&mut self,
msg: MsgSudoFreezeAccount,
) -> Result<MsgSudoFreezeAccountResponse>
pub async fn freeze_account( &mut self, msg: MsgSudoFreezeAccount, ) -> Result<MsgSudoFreezeAccountResponse>
Trait Implementations§
Source§impl Clone for SudoClient
impl Clone for SudoClient
Source§fn clone(&self) -> SudoClient
fn clone(&self) -> SudoClient
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 SudoClient
impl !RefUnwindSafe for SudoClient
impl Send for SudoClient
impl Sync for SudoClient
impl Unpin for SudoClient
impl !UnwindSafe for SudoClient
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request