pub struct BubblegumClient<'a> { /* private fields */ }Implementations§
Source§impl<'a> BubblegumClient<'a>
impl<'a> BubblegumClient<'a>
pub fn new() -> BubblegumClient<'a>
pub fn connect_to(url: &'a str, port: u32) -> BubblegumClient<'a>
pub fn publish<T>(&self, channel: &'a str, t: T)where
T: ToDataMessage,
pub fn request(&self, channel: &'a str)
pub fn peek<T>(&self, channel: &'a str) -> Option<T>where
T: FromDataMessage,
Auto Trait Implementations§
impl<'a> Freeze for BubblegumClient<'a>
impl<'a> RefUnwindSafe for BubblegumClient<'a>
impl<'a> Send for BubblegumClient<'a>
impl<'a> Sync for BubblegumClient<'a>
impl<'a> Unpin for BubblegumClient<'a>
impl<'a> UnwindSafe for BubblegumClient<'a>
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