Struct asink::mongo::MongoSink [] [src]

pub struct MongoSink { /* fields omitted */ }

Sink with MongoDB backend

Each data send to this sink will be serialized into bson::Document i.e. the data must be serialized into Document.

Methods

impl MongoSink
[src]

[src]

Constructs a new MongoSink.

impl MongoSink
[src]

[src]

Connect to mongodb with default setting localhost:27017

Trait Implementations

impl Debug for MongoSink
[src]

[src]

Formats the value using the given formatter.

impl Clone for MongoSink
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<Doc: 'static + Send + Serialize> Sink<Doc> for MongoSink
[src]

[src]

Start a thread for sink