pub enum SdkChannelHandle {
Embedded(EmbeddedChannelHandle),
Remote(RemoteChannelHandle),
}Expand description
Runtime-selected channel handle that keeps deployment differences behind configuration.
Variants§
Embedded(EmbeddedChannelHandle)
Embedded direct in-process handle.
Remote(RemoteChannelHandle)
Remote protocol-backed handle.
Implementations§
Trait Implementations§
Source§impl ChannelHandle for SdkChannelHandle
impl ChannelHandle for SdkChannelHandle
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 SdkChannelHandle
impl Clone for SdkChannelHandle
Source§fn clone(&self) -> SdkChannelHandle
fn clone(&self) -> SdkChannelHandle
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 SdkChannelHandle
impl !UnwindSafe for SdkChannelHandle
impl Freeze for SdkChannelHandle
impl Send for SdkChannelHandle
impl Sync for SdkChannelHandle
impl Unpin for SdkChannelHandle
impl UnsafeUnpin for SdkChannelHandle
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