pub struct NativeNetwork { /* private fields */ }Implementations§
Trait Implementations§
Source§impl BraidNetwork for NativeNetwork
impl BraidNetwork for NativeNetwork
Source§fn fetch<'life0, 'life1, 'async_trait>(
&'life0 self,
url: &'life1 str,
request: BraidRequest,
) -> Pin<Box<dyn Future<Output = Result<BraidResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn fetch<'life0, 'life1, 'async_trait>(
&'life0 self,
url: &'life1 str,
request: BraidRequest,
) -> Pin<Box<dyn Future<Output = Result<BraidResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Perform a standard Braid-HTTP request.
Source§fn subscribe<'life0, 'life1, 'async_trait>(
&'life0 self,
url: &'life1 str,
request: BraidRequest,
) -> Pin<Box<dyn Future<Output = Result<Receiver<Result<Update>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn subscribe<'life0, 'life1, 'async_trait>(
&'life0 self,
url: &'life1 str,
request: BraidRequest,
) -> Pin<Box<dyn Future<Output = Result<Receiver<Result<Update>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Subscribe to a Braid-HTTP 209 stream.
Auto Trait Implementations§
impl Freeze for NativeNetwork
impl !RefUnwindSafe for NativeNetwork
impl Send for NativeNetwork
impl Sync for NativeNetwork
impl Unpin for NativeNetwork
impl !UnwindSafe for NativeNetwork
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