[][src]Struct flv_client::ScClient

pub struct ScClient<A>(_);

Methods

impl<A> ScClient<A>[src]

pub fn inner(&self) -> &Client<A>[src]

impl<A> ScClient<A> where
    A: ToSocketAddrs + Display
[src]

pub async fn get_topic_composition<'_, '_>(
    &'_ mut self,
    topic: &'_ str
) -> Result<FlvTopicCompositionResponse, KfSocketError>
[src]

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]

pub async fn delete_custom_spu<'_>(
    &'_ mut self,
    spu: FlvCustomSpu
) -> Result<(), ClientError>
[src]

pub async fn list_spu<'_>(
    &'_ mut self,
    only_custom_spu: bool
) -> Result<Vec<FlvFetchSpuResponse>, ClientError>
[src]

pub async fn create_group<'_>(
    &'_ mut self,
    group: FlvCreateSpuGroupRequest
) -> Result<(), ClientError>
[src]

pub async fn delete_group<'_, '_>(
    &'_ mut self,
    group: &'_ str
) -> Result<(), ClientError>
[src]

pub async fn list_group<'_>(
    &'_ mut self
) -> Result<FlvFetchSpuGroupsResponse, ClientError>
[src]

Trait Implementations

impl<A> SpuController for ScClient<A> where
    A: ToSocketAddrs + Display + Send + Sync
[src]

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]

Find address of the SPU leader for a topic/partition

Auto Trait Implementations

impl<A> !RefUnwindSafe for ScClient<A>

impl<A> Send for ScClient<A> where
    A: Send

impl<A> Sync for ScClient<A> where
    A: Sync

impl<A> Unpin for ScClient<A> where
    A: Unpin

impl<A> !UnwindSafe for ScClient<A>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[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]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,