[−][src]Struct flv_client::ScClient
Methods
impl<A> ScClient<A>
[src]
impl<A> ScClient<A> where
A: ToSocketAddrs + Display,
[src]
A: ToSocketAddrs + Display,
pub async fn get_topic_composition<'_, '_>(
&'_ mut self,
topic: &'_ str
) -> Result<FlvTopicCompositionResponse, KfSocketError>
[src]
&'_ mut self,
topic: &'_ str
) -> Result<FlvTopicCompositionResponse, KfSocketError>
Connect to server, get version, and for topic composition: Replicas and SPUs
pub async fn connect(config: ClientConfig<A>) -> Result<Self, ClientError>
[src]
pub async fn create_custom_spu<'_>(
&'_ mut self,
id: i32,
name: String,
public_server: ServerAddress,
private_server: ServerAddress,
rack: Option<String>
) -> Result<(), ClientError>
[src]
&'_ mut self,
id: i32,
name: String,
public_server: ServerAddress,
private_server: ServerAddress,
rack: Option<String>
) -> Result<(), ClientError>
pub async fn delete_custom_spu<'_>(
&'_ mut self,
spu: FlvCustomSpu
) -> Result<(), ClientError>
[src]
&'_ mut self,
spu: FlvCustomSpu
) -> Result<(), ClientError>
pub async fn list_spu<'_>(
&'_ mut self,
only_custom_spu: bool
) -> Result<Vec<FlvFetchSpuResponse>, ClientError>
[src]
&'_ mut self,
only_custom_spu: bool
) -> Result<Vec<FlvFetchSpuResponse>, ClientError>
pub async fn create_group<'_>(
&'_ mut self,
group: FlvCreateSpuGroupRequest
) -> Result<(), ClientError>
[src]
&'_ mut self,
group: FlvCreateSpuGroupRequest
) -> Result<(), ClientError>
pub async fn delete_group<'_, '_>(
&'_ mut self,
group: &'_ str
) -> Result<(), ClientError>
[src]
&'_ mut self,
group: &'_ str
) -> Result<(), ClientError>
pub async fn list_group<'_>(
&'_ mut self
) -> Result<FlvFetchSpuGroupsResponse, ClientError>
[src]
&'_ mut self
) -> Result<FlvFetchSpuGroupsResponse, ClientError>
Trait Implementations
impl<A> SpuController for ScClient<A> where
A: ToSocketAddrs + Display + Send + Sync,
[src]
A: ToSocketAddrs + Display + Send + Sync,
type Leader = SpuLeader
type TopicMetadata = FlvFetchTopicResponse
fn find_leader_for_topic_partition<'life0, 'life1, 'async_trait>(
&'life0 mut self,
topic: &'life1 str,
partition: i32
) -> Pin<Box<dyn Future<Output = Result<Self::Leader, ClientError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
topic: &'life1 str,
partition: i32
) -> Pin<Box<dyn Future<Output = Result<Self::Leader, ClientError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Find address of the SPU leader for a topic/partition
fn delete_topic<'life0, 'life1, 'async_trait>(
&'life0 mut self,
topic: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<String, ClientError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
topic: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<String, ClientError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn create_topic<'life0, 'async_trait>(
&'life0 mut self,
topic: String,
replica: ReplicaConfig,
validate_only: bool
) -> Pin<Box<dyn Future<Output = Result<String, ClientError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
topic: String,
replica: ReplicaConfig,
validate_only: bool
) -> Pin<Box<dyn Future<Output = Result<String, ClientError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn topic_metadata<'life0, 'async_trait>(
&'life0 mut self,
topics: Option<Vec<String>>
) -> Pin<Box<dyn Future<Output = Result<Vec<Self::TopicMetadata>, ClientError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
topics: Option<Vec<String>>
) -> Pin<Box<dyn Future<Output = Result<Vec<Self::TopicMetadata>, ClientError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Auto Trait Implementations
impl<A> !RefUnwindSafe for ScClient<A>
impl<A> Send for ScClient<A> where
A: Send,
A: Send,
impl<A> Sync for ScClient<A> where
A: Sync,
A: Sync,
impl<A> Unpin for ScClient<A> where
A: Unpin,
A: Unpin,
impl<A> !UnwindSafe for ScClient<A>
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Erased for T
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,