Struct serf_rpc::Client [−][src]
Implementations
impl Client
[src]
pub fn fire_event<'a>(
&'a self,
name: &str,
payload: &[u8],
coalesce: bool
) -> RPCRequest<'a, ()>ⓘNotable traits for RPCRequest<'a, T>
impl<'a, T: RPCResponse> Future for RPCRequest<'a, T> type Output = Result<T, String>;
[src]
&'a self,
name: &str,
payload: &[u8],
coalesce: bool
) -> RPCRequest<'a, ()>ⓘ
Notable traits for RPCRequest<'a, T>
impl<'a, T: RPCResponse> Future for RPCRequest<'a, T> type Output = Result<T, String>;
Fire an event
impl Client
[src]
pub fn force_leave<'a>(&'a self, node: &str) -> RPCRequest<'a, ()>ⓘNotable traits for RPCRequest<'a, T>
impl<'a, T: RPCResponse> Future for RPCRequest<'a, T> type Output = Result<T, String>;
[src]
Notable traits for RPCRequest<'a, T>
impl<'a, T: RPCResponse> Future for RPCRequest<'a, T> type Output = Result<T, String>;
Force a node to leave
impl Client
[src]
pub fn join<'a>(
&'a self,
existing: &[&str],
replay: bool
) -> RPCRequest<'a, JoinResponse>ⓘNotable traits for RPCRequest<'a, T>
impl<'a, T: RPCResponse> Future for RPCRequest<'a, T> type Output = Result<T, String>;
[src]
&'a self,
existing: &[&str],
replay: bool
) -> RPCRequest<'a, JoinResponse>ⓘ
Notable traits for RPCRequest<'a, T>
impl<'a, T: RPCResponse> Future for RPCRequest<'a, T> type Output = Result<T, String>;
Join a serf cluster, given existing ip addresses. replay
controls whether to replay old user events
impl Client
[src]
pub fn members<'a>(&'a self) -> RPCRequest<'a, MembersResponse>ⓘNotable traits for RPCRequest<'a, T>
impl<'a, T: RPCResponse> Future for RPCRequest<'a, T> type Output = Result<T, String>;
[src]
Notable traits for RPCRequest<'a, T>
impl<'a, T: RPCResponse> Future for RPCRequest<'a, T> type Output = Result<T, String>;
Returns a list of all known members
impl Client
[src]
pub fn members_filtered<'a>(
&'a self,
status: Option<&str>,
name: Option<&str>,
tags: Option<&HashMap<String, String>>
) -> RPCRequest<'a, MembersResponse>ⓘNotable traits for RPCRequest<'a, T>
impl<'a, T: RPCResponse> Future for RPCRequest<'a, T> type Output = Result<T, String>;
[src]
&'a self,
status: Option<&str>,
name: Option<&str>,
tags: Option<&HashMap<String, String>>
) -> RPCRequest<'a, MembersResponse>ⓘ
Notable traits for RPCRequest<'a, T>
impl<'a, T: RPCResponse> Future for RPCRequest<'a, T> type Output = Result<T, String>;
Returns a filtered list of all known members
impl Client
[src]
pub fn tags<'a>(
&'a self,
add_tags: &[&str],
delete_tags: &[&str]
) -> RPCRequest<'a, MembersResponse>ⓘNotable traits for RPCRequest<'a, T>
impl<'a, T: RPCResponse> Future for RPCRequest<'a, T> type Output = Result<T, String>;
[src]
&'a self,
add_tags: &[&str],
delete_tags: &[&str]
) -> RPCRequest<'a, MembersResponse>ⓘ
Notable traits for RPCRequest<'a, T>
impl<'a, T: RPCResponse> Future for RPCRequest<'a, T> type Output = Result<T, String>;
Modifies the tags of the current node
impl Client
[src]
pub fn leave<'a>(&'a self) -> RPCRequest<'a, ()>ⓘNotable traits for RPCRequest<'a, T>
impl<'a, T: RPCResponse> Future for RPCRequest<'a, T> type Output = Result<T, String>;
[src]
Notable traits for RPCRequest<'a, T>
impl<'a, T: RPCResponse> Future for RPCRequest<'a, T> type Output = Result<T, String>;
Gracefully leave
impl Client
[src]
pub fn query_respond<'a>(
&'a self,
id: u64,
payload: &[u8]
) -> RPCRequest<'a, ()>ⓘNotable traits for RPCRequest<'a, T>
impl<'a, T: RPCResponse> Future for RPCRequest<'a, T> type Output = Result<T, String>;
[src]
&'a self,
id: u64,
payload: &[u8]
) -> RPCRequest<'a, ()>ⓘ
Notable traits for RPCRequest<'a, T>
impl<'a, T: RPCResponse> Future for RPCRequest<'a, T> type Output = Result<T, String>;
Response to a query
impl Client
[src]
pub fn get_coordinate<'a>(
&'a self,
node: &str
) -> RPCRequest<'a, CoordinateResponse>ⓘNotable traits for RPCRequest<'a, T>
impl<'a, T: RPCResponse> Future for RPCRequest<'a, T> type Output = Result<T, String>;
[src]
&'a self,
node: &str
) -> RPCRequest<'a, CoordinateResponse>ⓘ
Notable traits for RPCRequest<'a, T>
impl<'a, T: RPCResponse> Future for RPCRequest<'a, T> type Output = Result<T, String>;
Get a node's coordinate
impl Client
[src]
pub fn stats<'a>(&'a self) -> RPCRequest<'a, AgentStats>ⓘNotable traits for RPCRequest<'a, T>
impl<'a, T: RPCResponse> Future for RPCRequest<'a, T> type Output = Result<T, String>;
[src]
Notable traits for RPCRequest<'a, T>
impl<'a, T: RPCResponse> Future for RPCRequest<'a, T> type Output = Result<T, String>;
Get information about the Serf agent.
impl Client
[src]
impl Client
[src]
pub async fn connect(
rpc_addr: SocketAddr,
auth_key: Option<&str>
) -> Result<Self, String>
[src]
rpc_addr: SocketAddr,
auth_key: Option<&str>
) -> Result<Self, String>
Connect to hub.
Waits for handshake, and optionally for authentication if an auth key is provided.
pub async fn current_node_name(&self) -> Result<String, String>
[src]
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Client
[src]
impl Send for Client
[src]
impl !Sync for Client
[src]
impl Unpin for Client
[src]
impl !UnwindSafe for Client
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,