Struct zenoh_config::AggregationConf
source · pub struct AggregationConf { /* private fields */ }
Implementations§
source§impl AggregationConf
impl AggregationConf
pub fn validate(&self) -> bool
pub fn new( subscribers: Vec<OwnedKeyExpr>, publishers: Vec<OwnedKeyExpr> ) -> Result<Self, Self>
sourcepub fn subscribers(&self) -> &Vec<OwnedKeyExpr>
pub fn subscribers(&self) -> &Vec<OwnedKeyExpr>
A list of key-expressions for which all included subscribers will be aggregated into.
sourcepub fn set_subscribers(
&mut self,
value: Vec<OwnedKeyExpr>
) -> Result<Vec<OwnedKeyExpr>, Vec<OwnedKeyExpr>>
pub fn set_subscribers( &mut self, value: Vec<OwnedKeyExpr> ) -> Result<Vec<OwnedKeyExpr>, Vec<OwnedKeyExpr>>
A list of key-expressions for which all included subscribers will be aggregated into.
sourcepub fn publishers(&self) -> &Vec<OwnedKeyExpr>
pub fn publishers(&self) -> &Vec<OwnedKeyExpr>
A list of key-expressions for which all included publishers will be aggregated into.
sourcepub fn set_publishers(
&mut self,
value: Vec<OwnedKeyExpr>
) -> Result<Vec<OwnedKeyExpr>, Vec<OwnedKeyExpr>>
pub fn set_publishers( &mut self, value: Vec<OwnedKeyExpr> ) -> Result<Vec<OwnedKeyExpr>, Vec<OwnedKeyExpr>>
A list of key-expressions for which all included publishers will be aggregated into.
source§impl AggregationConf
impl AggregationConf
pub fn from_deserializer<'d, D: Deserializer<'d>>(
d: D
) -> Result<Self, Result<Self, D::Error>>where
Self: Deserialize<'d>,
Trait Implementations§
source§impl Clone for AggregationConf
impl Clone for AggregationConf
source§fn clone(&self) -> AggregationConf
fn clone(&self) -> AggregationConf
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AggregationConf
impl Debug for AggregationConf
source§impl Default for AggregationConf
impl Default for AggregationConf
source§fn default() -> AggregationConf
fn default() -> AggregationConf
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for AggregationConfwhere
AggregationConf: Default,
impl<'de> Deserialize<'de> for AggregationConfwhere
AggregationConf: Default,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for AggregationConf
impl Serialize for AggregationConf
source§impl ValidatedMap for AggregationConf
impl ValidatedMap for AggregationConf
fn insert<'d, D: Deserializer<'d>>( &mut self, key: &str, value: D ) -> Result<(), InsertionError>
fn get<'a>(&'a self, key: &str) -> Result<&dyn Any, GetError>
fn get_json(&self, key: &str) -> Result<String, GetError>
type Keys = Vec<String>
fn keys(&self) -> Self::Keys
fn insert_json5(&mut self, key: &str, value: &str) -> Result<(), InsertionError>
source§impl<'a> ValidatedMapAssociatedTypes<'a> for AggregationConf
impl<'a> ValidatedMapAssociatedTypes<'a> for AggregationConf
Auto Trait Implementations§
impl Freeze for AggregationConf
impl RefUnwindSafe for AggregationConf
impl Send for AggregationConf
impl Sync for AggregationConf
impl Unpin for AggregationConf
impl UnwindSafe for AggregationConf
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more