Struct fruently::fluent::Fluent [] [src]

pub struct Fluent<A> where A: ToSocketAddrs {
    // some fields omitted
}

Methods

impl<A: ToSocketAddrs> Fluent<A>
[src]

fn new<T>(addr: A, tag: T) -> Fluent<A> where T: AsRef<str>

Create Fluent type.

Usage

use fruently::fluent::Fluent;
let fruently_with_str_tag = Fluent::new("0.0.0.0:24224", "test");
let fruently_with_string_tag = Fluent::new("0.0.0.0:24224", "test".to_string());

fn new_with_conf<T>(addr: A, tag: T, conf: RetryConf) -> Fluent<A> where T: AsRef<str>

Trait Implementations

impl<A: PartialEq> PartialEq for Fluent<A> where A: ToSocketAddrs
[src]

fn eq(&self, __arg_0: &Fluent<A>) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &Fluent<A>) -> bool

This method tests for !=.

impl<A: Clone> Clone for Fluent<A> where A: ToSocketAddrs
[src]

fn clone(&self) -> Fluent<A>

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl<A: Debug> Debug for Fluent<A> where A: ToSocketAddrs
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl<A: ToSocketAddrs> JsonForwardable for Fluent<A>
[src]

fn post<T>(self, record: T) -> Result<()FluentError> where T: Encodable

Post record into Fluentd. Without time version.

fn post_with_time<T>(self, record: T, time: Tm) -> Result<()FluentError> where T: Encodable

Post record into Fluentd. With time version.

impl<A: ToSocketAddrs> MsgpackForwardable for Fluent<A>
[src]

fn post<T>(self, record: T) -> Result<()FluentError> where T: Encodable

Post record into Fluentd. Without time version.

fn post_with_time<T>(self, record: T, time: Tm) -> Result<()FluentError> where T: Encodable

Post record into Fluentd. With time version.