pub struct InOutQueueEndpointBuilder { /* private fields */ }Expand description
Builder for in-out (send + receive) in-memory endpoint.
Implementations§
Source§impl InOutQueueEndpointBuilder
impl InOutQueueEndpointBuilder
pub fn id(self, id: impl Into<String>) -> InOutQueueEndpointBuilder
pub fn channel(self, ch: Arc<dyn Channel>) -> InOutQueueEndpointBuilder
Sourcepub fn source(self, src: EndpointSource) -> InOutQueueEndpointBuilder
pub fn source(self, src: EndpointSource) -> InOutQueueEndpointBuilder
Directly set a source metadata descriptor.
pub fn source_http( self, _adapter: &Arc<()>, _method: impl Into<String>, _path: impl Into<String>, ) -> InOutQueueEndpointBuilder
pub fn source_channel<T>(self, channel: &Arc<T>) -> InOutQueueEndpointBuilderwhere
T: Channel + 'static,
pub fn build(self) -> Arc<InMemoryEndpoint>
Auto Trait Implementations§
impl Freeze for InOutQueueEndpointBuilder
impl !RefUnwindSafe for InOutQueueEndpointBuilder
impl Send for InOutQueueEndpointBuilder
impl Sync for InOutQueueEndpointBuilder
impl Unpin for InOutQueueEndpointBuilder
impl !UnwindSafe for InOutQueueEndpointBuilder
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