[−][src]Struct metrical::ConfigurationBuilder
Helper to build a configuration piece by piece.
Implementations
impl ConfigurationBuilder
[src]
pub fn new() -> Self
[src]
pub fn ip_addr(self, ip_addr: IpAddr) -> Self
[src]
pub fn port(self, port: u16) -> Self
[src]
pub fn flush_after_amount(self, amount: Option<usize>) -> Self
[src]
pub fn flush_after_interval(self, interval: Option<u64>) -> Self
[src]
pub fn protocol(self, protocol: Protocol) -> Self
[src]
pub fn network_protocol(self, protocol: NetworkProtocol) -> Self
[src]
pub fn namespace(self, namespace: Option<Namespace>) -> Self
[src]
pub fn build(self) -> Result<Configuration, MetricalError>
[src]
Trait Implementations
impl Default for ConfigurationBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for ConfigurationBuilder
impl Send for ConfigurationBuilder
impl Sync for ConfigurationBuilder
impl Unpin for ConfigurationBuilder
impl UnwindSafe for ConfigurationBuilder
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> 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>,