pub struct BridgeRegistry { /* private fields */ }Expand description
The bridges of one session and the rules that connect them to its rooms.
Implementations§
Source§impl BridgeRegistry
impl BridgeRegistry
pub fn new(vault: Arc<dyn KeyVault>) -> Self
pub fn consent(&self) -> &ConsentStore
Sourcepub fn register(&mut self, bridge: Box<dyn Bridge>) -> Result<()>
pub fn register(&mut self, bridge: Box<dyn Bridge>) -> Result<()>
Adds a bridge and connects it with its own scoped credentials.
pub fn names(&self) -> Vec<&'static str>
Sourcepub fn forward(&mut self, ev: &LocalEvent) -> ForwardReport
pub fn forward(&mut self, ev: &LocalEvent) -> ForwardReport
Offers a decrypted event to every bridge that the room has consented to.
Auto Trait Implementations§
impl !RefUnwindSafe for BridgeRegistry
impl !Sync for BridgeRegistry
impl !UnwindSafe for BridgeRegistry
impl Freeze for BridgeRegistry
impl Send for BridgeRegistry
impl Unpin for BridgeRegistry
impl UnsafeUnpin for BridgeRegistry
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