pub struct Bridge<B: CommBusBackend> { /* private fields */ }Implementations§
Source§impl<B: CommBusBackend> Bridge<B>
impl<B: CommBusBackend> Bridge<B>
pub fn new( config: BridgeConfig, handler: impl BridgeHandler, ) -> Result<Self, BridgeError>
pub fn emit( &self, name: impl Into<String>, data: Value, ) -> Result<(), BridgeError>
Auto Trait Implementations§
impl<B> Freeze for Bridge<B>
impl<B> !RefUnwindSafe for Bridge<B>
impl<B> !Send for Bridge<B>
impl<B> !Sync for Bridge<B>
impl<B> Unpin for Bridge<B>
impl<B> UnsafeUnpin for Bridge<B>
impl<B> !UnwindSafe for Bridge<B>
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