pub enum LinkEvent {
PeerNamespaces {
router_id: String,
patterns: Vec<String>,
},
RemoteSet {
address: String,
value: Value,
revision: Option<u64>,
origin: String,
},
RemotePublish {
message: Message,
origin: String,
},
SyncComplete {
router_id: String,
pattern: String,
revision: u64,
},
Disconnected {
router_id: String,
reason: Option<String>,
},
Connected {
router_id: String,
},
}Expand description
Events emitted by a federation link to the local router
Variants§
PeerNamespaces
Peer declared its namespace patterns
RemoteSet
Received a SET from the peer (should be applied to local state)
RemotePublish
Received a PUBLISH from the peer (should be broadcast locally)
SyncComplete
Peer sync complete
Disconnected
Peer disconnected
Connected
Peer connected and handshake complete
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LinkEvent
impl RefUnwindSafe for LinkEvent
impl Send for LinkEvent
impl Sync for LinkEvent
impl Unpin for LinkEvent
impl UnsafeUnpin for LinkEvent
impl UnwindSafe for LinkEvent
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