pub struct ChannelSpec { /* private fields */ }Expand description
Programmatic Channel specification (pure pipe).
Implementations§
Source§impl ChannelSpec
impl ChannelSpec
pub fn direct() -> Self
pub fn queue() -> Self
Sourcepub fn id(self, id: impl Into<String>) -> Self
pub fn id(self, id: impl Into<String>) -> Self
Set the channel identifier (required by some builders, ignored by others).
Sourcepub fn kind(&self) -> ChannelKindSpec
pub fn kind(&self) -> ChannelKindSpec
Return the channel implementation kind captured by this spec.
Sourcepub fn channel_id(&self) -> Option<&str>
pub fn channel_id(&self) -> Option<&str>
Get the channel identifier, if one was set.
Trait Implementations§
Source§impl Clone for ChannelSpec
impl Clone for ChannelSpec
Source§fn clone(&self) -> ChannelSpec
fn clone(&self) -> ChannelSpec
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 ChannelSpec
impl Debug for ChannelSpec
Source§impl Default for ChannelSpec
impl Default for ChannelSpec
Source§fn default() -> ChannelSpec
fn default() -> ChannelSpec
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ChannelSpec
impl RefUnwindSafe for ChannelSpec
impl Send for ChannelSpec
impl Sync for ChannelSpec
impl Unpin for ChannelSpec
impl UnwindSafe for ChannelSpec
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