pub trait DatabaseStream:
Read
+ Write
+ Sized {
// Required method
fn try_clone(&self) -> Result<Self>;
}
Expand description
Represents a stream usable for BaseX database Connection
.
The BaseX connection requires r/w stream and also a clone method that creates a copy of itself but is expected to reference the same stream.
Required Methods§
Sourcefn try_clone(&self) -> Result<Self>
fn try_clone(&self) -> Result<Self>
Creates a new independently owned handle to the underlying stream.
The returned instance is a reference to the same stream that this object references. Both handles will read and write the same stream of data, and options set on one stream will be propagated to the other stream.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.