pub struct ManagerClient { /* private fields */ }Expand description
Client for communicating with Manager
Implementations§
Source§impl ManagerClient
impl ManagerClient
Sourcepub async fn add(&mut self, req: &AddRequest) -> Result<AddResponse, Error>
pub async fn add(&mut self, req: &AddRequest) -> Result<AddResponse, Error>
Send command
Sourcepub async fn list(&mut self, req: &ListRequest) -> Result<ListResponse, Error>
pub async fn list(&mut self, req: &ListRequest) -> Result<ListResponse, Error>
Send command
Sourcepub async fn ping(&mut self, req: &PingRequest) -> Result<PingResponse, Error>
pub async fn ping(&mut self, req: &PingRequest) -> Result<PingResponse, Error>
Send command
Sourcepub async fn remove(
&mut self,
req: &RemoveRequest,
) -> Result<RemoveResponse, Error>
pub async fn remove( &mut self, req: &RemoveRequest, ) -> Result<RemoveResponse, Error>
Send command
Sourcepub async fn connect(
context: &Context,
bind_addr: &ManagerAddr,
connect_opts: &ConnectOpts,
) -> Result<Self, Error>
pub async fn connect( context: &Context, bind_addr: &ManagerAddr, connect_opts: &ConnectOpts, ) -> Result<Self, Error>
Create a ManagerDatagram for sending data to manager
Auto Trait Implementations§
impl !Freeze for ManagerClient
impl RefUnwindSafe for ManagerClient
impl Send for ManagerClient
impl Sync for ManagerClient
impl Unpin for ManagerClient
impl UnsafeUnpin for ManagerClient
impl UnwindSafe for ManagerClient
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> 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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more