pub struct MercuryManager(/* private fields */);
Implementations§
Source§impl MercuryManager
impl MercuryManager
pub fn get<T: Into<String>>( &self, uri: T, ) -> Result<MercuryFuture<MercuryResponse>, Error>
pub fn send<T: Into<String>>( &self, uri: T, data: Vec<u8>, ) -> Result<MercuryFuture<MercuryResponse>, Error>
pub fn sender<T: Into<String>>(&self, uri: T) -> MercurySender
pub fn subscribe<T: Into<String>>( &self, uri: T, ) -> impl Future<Output = Result<UnboundedReceiver<MercuryResponse>, Error>> + 'static
pub fn listen_for<T: Into<String>>( &self, uri: T, ) -> impl Future<Output = UnboundedReceiver<MercuryResponse>> + 'static
Trait Implementations§
Source§impl Clone for MercuryManager
impl Clone for MercuryManager
Source§fn clone(&self) -> MercuryManager
fn clone(&self) -> MercuryManager
Returns a copy of the value. Read more
1.0.0 · 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 MercuryManager
impl !RefUnwindSafe for MercuryManager
impl Send for MercuryManager
impl Sync for MercuryManager
impl Unpin for MercuryManager
impl !UnwindSafe for MercuryManager
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