Struct persist::client::MultiWriteHandle[][src]

pub struct MultiWriteHandle {
    stream_ids: HashSet<Id>,
    client: Result<RuntimeClient, Error>,
}
Expand description

A handle for writing to multiple streams.

Fields

stream_ids: HashSet<Id>client: Result<RuntimeClient, Error>

Implementations

Returns Some(Error) in case any initialization operation on this MultiWriteHandle resulted in an Error.

Returns a new MultiWriteHandle for the given stream.

Returns a new MultiWriteHandle for the given streams.

Convenience function for when all the streams have matching K and V.

NOTE: This only returns an Error in case the passed iterator contains no handles or when passing in handles from different persist runtimes. All other errors are handled internally.

Adds the given stream to the set

NOTE: This only returns an Error when passing in handles from different persist runtimes. All other errors are handled internally.

Atomically writes the given updates to the paired streams.

Either all of the writes will be made durable for replay or none of them will.

Closes the streams at the given timestamp, migrating data strictly less than it into the trace.

Ids may not be duplicated (this is equivalent to sealing the stream twice at the same timestamp, which we currently disallow).

Closes all contained streams at the given timestamp, migrating data strictly less than it into the trace.

Unblocks compaction for updates for the given streams at the paired since timestamp.

Ids may not be duplicated (this is equivalent to allowing compaction on the stream twice at the same timestamp, which we currently disallow).

Atomically unblocks compaction for all contained streams up to the given since frontier.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Upcasts this ProgressEventTimestamp to Any. Read more

Returns the name of the concrete type of this object. Read more

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more