pub struct EmbeddedChannelHandle { /* private fields */ }Expand description
Channel handle that publishes through direct in-process references.
Implementations§
Source§impl EmbeddedChannelHandle
impl EmbeddedChannelHandle
Sourcepub fn new(config: &EmbeddedConfig) -> Self
pub fn new(config: &EmbeddedConfig) -> Self
Creates an embedded channel handle from direct in-process configuration.
Sourcepub fn channel_name(&self) -> &str
pub fn channel_name(&self) -> &str
Returns the application-visible channel name.
Trait Implementations§
Source§impl ChannelHandle for EmbeddedChannelHandle
impl ChannelHandle for EmbeddedChannelHandle
Source§type Subscription<M> = SdkSubscription<M>
where
M: DeserializeOwned
type Subscription<M> = SdkSubscription<M> where M: DeserializeOwned
Stream returned by
subscribe for message type M.Source§type ReplyFuture<'a, Resp> = ReadyResult<Resp>
where
Self: 'a,
Resp: DeserializeOwned + 'a
type ReplyFuture<'a, Resp> = ReadyResult<Resp> where Self: 'a, Resp: DeserializeOwned + 'a
Future returned by
request_reply for reply type Resp.Source§fn publish<M>(&self, message: M) -> Result<PressureResponse, SdkError>where
M: Serialize + SchemaValidate,
fn publish<M>(&self, message: M) -> Result<PressureResponse, SdkError>where
M: Serialize + SchemaValidate,
Publishes a typed message to the channel. Read more
Source§fn subscribe<M>(&self) -> Self::Subscription<M>where
M: DeserializeOwned,
fn subscribe<M>(&self) -> Self::Subscription<M>where
M: DeserializeOwned,
Subscribes to typed channel messages. Read more
Source§fn request_reply<Req, Resp>(&self, request: Req) -> ReadyResult<Resp> ⓘ
fn request_reply<Req, Resp>(&self, request: Req) -> ReadyResult<Resp> ⓘ
Sends a typed request and resolves with a typed reply. Read more
Source§impl Clone for EmbeddedChannelHandle
impl Clone for EmbeddedChannelHandle
Source§fn clone(&self) -> EmbeddedChannelHandle
fn clone(&self) -> EmbeddedChannelHandle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 EmbeddedChannelHandle
impl !UnwindSafe for EmbeddedChannelHandle
impl Freeze for EmbeddedChannelHandle
impl Send for EmbeddedChannelHandle
impl Sync for EmbeddedChannelHandle
impl Unpin for EmbeddedChannelHandle
impl UnsafeUnpin for EmbeddedChannelHandle
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