pub struct StreamableHttpClientWorker<C: StreamableHttpClient> {
pub client: C,
pub config: StreamableHttpClientTransportConfig,
}Available on crate feature
transport-streamable-http-client only.Fields§
§client: C§config: StreamableHttpClientTransportConfigImplementations§
Source§impl<C: StreamableHttpClient + Default> StreamableHttpClientWorker<C>
impl<C: StreamableHttpClient + Default> StreamableHttpClientWorker<C>
pub fn new_simple(url: impl Into<Arc<str>>) -> Self
Source§impl<C: StreamableHttpClient> StreamableHttpClientWorker<C>
impl<C: StreamableHttpClient> StreamableHttpClientWorker<C>
pub fn new(client: C, config: StreamableHttpClientTransportConfig) -> Self
Trait Implementations§
Source§impl<C: Clone + StreamableHttpClient> Clone for StreamableHttpClientWorker<C>
impl<C: Clone + StreamableHttpClient> Clone for StreamableHttpClientWorker<C>
Source§fn clone(&self) -> StreamableHttpClientWorker<C>
fn clone(&self) -> StreamableHttpClientWorker<C>
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 moreSource§impl<C: Debug + StreamableHttpClient> Debug for StreamableHttpClientWorker<C>
impl<C: Debug + StreamableHttpClient> Debug for StreamableHttpClientWorker<C>
Source§impl<C: Default + StreamableHttpClient> Default for StreamableHttpClientWorker<C>
impl<C: Default + StreamableHttpClient> Default for StreamableHttpClientWorker<C>
Source§fn default() -> StreamableHttpClientWorker<C>
fn default() -> StreamableHttpClientWorker<C>
Returns the “default value” for a type. Read more
Source§impl<C: StreamableHttpClient> Worker for StreamableHttpClientWorker<C>
impl<C: StreamableHttpClient> Worker for StreamableHttpClientWorker<C>
Source§type Role = RoleClient
type Role = RoleClient
Available on crate feature
transport-worker only.Source§type Error = StreamableHttpError<<C as StreamableHttpClient>::Error>
type Error = StreamableHttpError<<C as StreamableHttpClient>::Error>
Available on crate feature
transport-worker only.Source§fn err_closed() -> Self::Error
fn err_closed() -> Self::Error
Available on crate feature
transport-worker only.Source§fn config(&self) -> WorkerConfig
fn config(&self) -> WorkerConfig
Available on crate feature
transport-worker only.Source§async fn run(self, context: WorkerContext<Self>) -> Result<(), WorkerQuitReason>
async fn run(self, context: WorkerContext<Self>) -> Result<(), WorkerQuitReason>
Available on crate feature
transport-worker only.Auto Trait Implementations§
impl<C> Freeze for StreamableHttpClientWorker<C>where
C: Freeze,
impl<C> !RefUnwindSafe for StreamableHttpClientWorker<C>
impl<C> Send for StreamableHttpClientWorker<C>
impl<C> Sync for StreamableHttpClientWorker<C>where
C: Sync,
impl<C> Unpin for StreamableHttpClientWorker<C>where
C: Unpin,
impl<C> UnsafeUnpin for StreamableHttpClientWorker<C>where
C: UnsafeUnpin,
impl<C> !UnwindSafe for StreamableHttpClientWorker<C>
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