pub struct MessageContext { /* private fields */ }
Implementations§
Source§impl MessageContext
impl MessageContext
pub fn new(stream_group: Option<String>, stream: Option<String>) -> Self
Sourcepub fn stream_group(&self) -> Option<&str>
pub fn stream_group(&self) -> Option<&str>
Get the Stream Group where Messages will be sent to.
Sourcepub fn set_stream_group(&mut self, stream_group: Option<String>)
pub fn set_stream_group(&mut self, stream_group: Option<String>)
Set the Stream Group where Messages will be sent to.
Sourcepub fn set_stream(&mut self, stream: Option<String>)
pub fn set_stream(&mut self, stream: Option<String>)
Sourcepub fn compression(&self) -> Option<Compression>
pub fn compression(&self) -> Option<Compression>
Get the compression to use for sending Messages.
Sourcepub fn set_compression(&mut self, compression: Option<Compression>)
pub fn set_compression(&mut self, compression: Option<Compression>)
Set the compression to use for sending Messages.
Trait Implementations§
Source§impl Clone for MessageContext
impl Clone for MessageContext
Source§fn clone(&self) -> MessageContext
fn clone(&self) -> MessageContext
Returns a duplicate 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 moreSource§impl Debug for MessageContext
impl Debug for MessageContext
Source§impl Default for MessageContext
impl Default for MessageContext
Source§fn default() -> MessageContext
fn default() -> MessageContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MessageContext
impl RefUnwindSafe for MessageContext
impl Send for MessageContext
impl Sync for MessageContext
impl Unpin for MessageContext
impl UnwindSafe for MessageContext
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more