Struct rabbitmq_stream_client::Environment
source · pub struct Environment { /* private fields */ }
Expand description
Main access point to a node
Implementations§
source§impl Environment
impl Environment
pub fn builder() -> EnvironmentBuilder
sourcepub fn stream_creator(&self) -> StreamCreator
pub fn stream_creator(&self) -> StreamCreator
Returns a builder for creating a stream with a specific configuration
sourcepub fn producer(&self) -> ProducerBuilder<NoDedup>
pub fn producer(&self) -> ProducerBuilder<NoDedup>
Returns a builder for creating a producer
sourcepub fn consumer(&self) -> ConsumerBuilder
pub fn consumer(&self) -> ConsumerBuilder
Returns a builder for creating a consumer
sourcepub async fn delete_stream(&self, stream: &str) -> Result<(), StreamDeleteError>
pub async fn delete_stream(&self, stream: &str) -> Result<(), StreamDeleteError>
Delete a stream
Trait Implementations§
source§impl Clone for Environment
impl Clone for Environment
source§fn clone(&self) -> Environment
fn clone(&self) -> Environment
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for Environment
impl Send for Environment
impl Sync for Environment
impl Unpin for Environment
impl !UnwindSafe for Environment
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more