pub struct HttpTransport { /* private fields */ }Expand description
HTTP transport implementation.
Implementations§
Source§impl HttpTransport
impl HttpTransport
Sourcepub fn from_config(config: &PhyTraceConfig) -> PhyTraceResult<Self>
pub fn from_config(config: &PhyTraceConfig) -> PhyTraceResult<Self>
Create a new HTTP transport from configuration.
Trait Implementations§
Source§impl Debug for HttpTransport
impl Debug for HttpTransport
Source§impl Transport for HttpTransport
impl Transport for HttpTransport
Source§fn send<'life0, 'life1, 'async_trait>(
&'life0 self,
event: &'life1 UdmEvent,
) -> Pin<Box<dyn Future<Output = PhyTraceResult<SendResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn send<'life0, 'life1, 'async_trait>(
&'life0 self,
event: &'life1 UdmEvent,
) -> Pin<Box<dyn Future<Output = PhyTraceResult<SendResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Send a single event.
Source§fn send_batch<'life0, 'life1, 'async_trait>(
&'life0 self,
events: &'life1 [UdmEvent],
) -> Pin<Box<dyn Future<Output = PhyTraceResult<BatchResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn send_batch<'life0, 'life1, 'async_trait>(
&'life0 self,
events: &'life1 [UdmEvent],
) -> Pin<Box<dyn Future<Output = PhyTraceResult<BatchResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Send a batch of events.
Source§fn is_connected<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn is_connected<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Check if the transport is connected/ready.
Source§fn connect<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = PhyTraceResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn connect<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = PhyTraceResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Connect to the remote endpoint.
Source§fn disconnect<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = PhyTraceResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn disconnect<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = PhyTraceResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Disconnect from the remote endpoint.
Source§fn stats(&self) -> TransportStats
fn stats(&self) -> TransportStats
Get transport statistics.
Auto Trait Implementations§
impl !Freeze for HttpTransport
impl !RefUnwindSafe for HttpTransport
impl Send for HttpTransport
impl Sync for HttpTransport
impl Unpin for HttpTransport
impl !UnwindSafe for HttpTransport
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