pub struct Cable { /* private fields */ }Implementations§
Source§impl Cable
impl Cable
pub fn new(pubsub: Arc<dyn PubSub>) -> Self
Sourcepub async fn broadcast_to(&self, stream: &str, message: &str) -> Result<()>
pub async fn broadcast_to(&self, stream: &str, message: &str) -> Result<()>
Publish a raw string to stream.
Auto Trait Implementations§
impl !RefUnwindSafe for Cable
impl !UnwindSafe for Cable
impl Freeze for Cable
impl Send for Cable
impl Sync for Cable
impl Unpin for Cable
impl UnsafeUnpin for Cable
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