pub struct Client { /* private fields */ }Implementations§
Source§impl Client
impl Client
Sourcepub fn fire_event<'a>(
&'a self,
name: &str,
payload: &[u8],
coalesce: bool,
) -> RPCRequest<'a, ()> ⓘ
pub fn fire_event<'a>( &'a self, name: &str, payload: &[u8], coalesce: bool, ) -> RPCRequest<'a, ()> ⓘ
Fire an event
Source§impl Client
impl Client
Sourcepub fn force_leave<'a>(&'a self, node: &str) -> RPCRequest<'a, ()> ⓘ
pub fn force_leave<'a>(&'a self, node: &str) -> RPCRequest<'a, ()> ⓘ
Force a node to leave
Source§impl Client
impl Client
Sourcepub fn join<'a>(
&'a self,
existing: &[&str],
replay: bool,
) -> RPCRequest<'a, JoinResponse> ⓘ
pub fn join<'a>( &'a self, existing: &[&str], replay: bool, ) -> RPCRequest<'a, JoinResponse> ⓘ
Join a serf cluster, given existing ip addresses. replay controls whether to replay old user events
Source§impl Client
impl Client
Sourcepub fn members<'a>(&'a self) -> RPCRequest<'a, MembersResponse> ⓘ
pub fn members<'a>(&'a self) -> RPCRequest<'a, MembersResponse> ⓘ
Returns a list of all known members
Source§impl Client
impl Client
Sourcepub fn members_filtered<'a>(
&'a self,
status: Option<&str>,
name: Option<&str>,
tags: Option<&HashMap<String, String>>,
) -> RPCRequest<'a, MembersResponse> ⓘ
pub fn members_filtered<'a>( &'a self, status: Option<&str>, name: Option<&str>, tags: Option<&HashMap<String, String>>, ) -> RPCRequest<'a, MembersResponse> ⓘ
Returns a filtered list of all known members
Source§impl Client
impl Client
Sourcepub fn query_respond<'a>(
&'a self,
id: u64,
payload: &[u8],
) -> RPCRequest<'a, ()> ⓘ
pub fn query_respond<'a>( &'a self, id: u64, payload: &[u8], ) -> RPCRequest<'a, ()> ⓘ
Response to a query
Source§impl Client
impl Client
Sourcepub fn get_coordinate<'a>(
&'a self,
node: &str,
) -> RPCRequest<'a, CoordinateResponse> ⓘ
pub fn get_coordinate<'a>( &'a self, node: &str, ) -> RPCRequest<'a, CoordinateResponse> ⓘ
Get a node’s coordinate
Source§impl Client
impl Client
Sourcepub fn stats<'a>(&'a self) -> RPCRequest<'a, AgentStats> ⓘ
pub fn stats<'a>(&'a self) -> RPCRequest<'a, AgentStats> ⓘ
Get information about the Serf agent.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnwindSafe for Client
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