pub struct ClientSession { /* private fields */ }Implementations§
Source§impl ClientSession
impl ClientSession
pub async fn start( &self, target_path: &str, kind: Kind, payload: Bytes, hops: Option<u8>, headers: Map<String, Value>, ) -> Result<ClientStream, ClientError>
pub async fn start_streaming( &self, target_path: &str, kind: Kind, body: Pin<Box<dyn Stream<Item = Result<Bytes, CoreError>> + Send>>, hops: Option<u8>, headers: Map<String, Value>, ) -> Result<ClientStream, ClientError>
pub async fn fetch( &self, request: Request<Bytes>, timeout: Duration, ) -> Result<Response<Bytes>, ClientError>
pub async fn fetch_body( &self, request: Request<WireBody>, timeout: Duration, ) -> Result<Response<WireBody>, ClientError>
pub async fn subscribe( &self, request: Request<Bytes>, timeout: Option<Duration>, ) -> Result<ClientStream, ClientError>
pub async fn discover( &self, target_path: &str, plan: DiscoverPlan, ) -> Result<ClientStream, ClientError>
Trait Implementations§
Source§impl Clone for ClientSession
impl Clone for ClientSession
Source§fn clone(&self) -> ClientSession
fn clone(&self) -> ClientSession
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 Freeze for ClientSession
impl RefUnwindSafe for ClientSession
impl Send for ClientSession
impl Sync for ClientSession
impl Unpin for ClientSession
impl UnsafeUnpin for ClientSession
impl UnwindSafe for ClientSession
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