[][src]Struct flv_client::profile::Config

pub struct Config { /* fields omitted */ }

Implementations

impl Config[src]

pub fn new() -> Self[src]

pub fn new_with_local_cluster(domain: String) -> Self[src]

create new config with a single local cluster

pub fn add_cluster(&mut self, cluster: Cluster, name: String)[src]

add new cluster

pub fn add_profile(&mut self, profile: Profile, name: String)[src]

pub fn version(&self) -> &str[src]

pub fn current_profile_name(&self) -> Option<&str>[src]

current profile

pub fn current_profile(&self) -> Option<&Profile>[src]

pub fn set_current_profile(&mut self, profile_name: &str) -> bool[src]

set current profile, if profile doesn't exists return false

pub fn delete_profile(&mut self, profile_name: &str) -> bool[src]

delete profile

pub fn mut_profile(&mut self, profile_name: &str) -> Option<&mut Profile>[src]

pub fn current_cluster_or_with_profile(
    &self,
    profile_name: Option<&str>
) -> Option<&Cluster>
[src]

find cluster specified in the profile or current cluster

pub fn current_cluster(&self) -> Option<&Cluster>[src]

find current cluster

pub fn cluster(&self, cluster_name: &str) -> Option<&Cluster>[src]

pub fn mut_cluster(&mut self, cluster_name: &str) -> Option<&mut Cluster>[src]

pub fn resolve_replica_config(
    &self,
    _topic_name: &str,
    _partition: i32
) -> Replica
[src]

look up replica config this will iterate and find all configuration that can resolve config

  1. match all config that matches criteria including asterik
  2. apply in terms of precedent

Trait Implementations

impl Debug for Config[src]

impl Default for Config[src]

impl<'de> Deserialize<'de> for Config[src]

impl PartialEq<Config> for Config[src]

impl Serialize for Config[src]

impl StructuralPartialEq for Config[src]

Auto Trait Implementations

impl RefUnwindSafe for Config

impl Send for Config

impl Sync for Config

impl Unpin for Config

impl UnwindSafe for Config

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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>,