pub struct ConnectedPlatform {
pub platform_id: String,
pub peer: Peer,
pub parties: Vec<(PartyRef, Role)>,
pub status: ConnectionStatus,
}Available on crate feature
hub only.Expand description
One platform connected to the hub, and the parties it speaks for.
Fields§
§platform_id: StringA stable identifier for the platform.
peer: PeerHow to call it.
parties: Vec<(PartyRef, Role)>The parties it hosts, with the role each fills.
status: ConnectionStatusWhether messages can currently be delivered to it.
Implementations§
Source§impl ConnectedPlatform
impl ConnectedPlatform
Sourcepub fn is_reachable(&self) -> bool
pub fn is_reachable(&self) -> bool
Whether messages can currently be delivered.
Sourcepub fn implements(&self, module: &ModuleId, role: InterfaceRole) -> bool
pub fn implements(&self, module: &ModuleId, role: InterfaceRole) -> bool
Whether this platform implements a module in a given interface role.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ConnectedPlatform
impl RefUnwindSafe for ConnectedPlatform
impl Send for ConnectedPlatform
impl Sync for ConnectedPlatform
impl Unpin for ConnectedPlatform
impl UnsafeUnpin for ConnectedPlatform
impl UnwindSafe for ConnectedPlatform
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