[−][src]Struct flv_client::profile::Config
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]
&self,
profile_name: Option<&str>
) -> Option<&Cluster>
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]
&self,
_topic_name: &str,
_partition: i32
) -> Replica
look up replica config this will iterate and find all configuration that can resolve config
- match all config that matches criteria including asterik
- apply in terms of precedent
Trait Implementations
impl Debug for Config
[src]
impl Default for Config
[src]
impl<'de> Deserialize<'de> for Config
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<Config> for Config
[src]
impl Serialize for Config
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
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]
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> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
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>,