pub struct TopologyDocument {
pub rev: u64,
pub this_device: String,
pub devices: Vec<Device>,
pub stations: Vec<Station>,
pub lines: Vec<Line>,
pub links: Vec<Link>,
pub connections: Vec<Connection>,
/* private fields */
}Expand description
One console.topology record: the whole document as it stands.
Fields§
§rev: u64One more than the previous document’s, from 1 at start.
this_device: StringThe id of the device this server is, one of devices’ ids (lane
brief ruling 1, Hermes 7 Oct 03:51): named once here, never as a flag
on each device.
devices: Vec<Device>This device, then each peer.
stations: Vec<Station>The registered services.
lines: Vec<Line>Every roster channel outside console..
links: Vec<Link>Cluster peer links, then known federated links.
connections: Vec<Connection>One per live connection.
Implementations§
Trait Implementations§
Source§impl Clone for TopologyDocument
impl Clone for TopologyDocument
Source§impl Debug for TopologyDocument
impl Debug for TopologyDocument
impl Eq for TopologyDocument
Source§impl PartialEq for TopologyDocument
impl PartialEq for TopologyDocument
Source§impl Serialize for TopologyDocument
impl Serialize for TopologyDocument
impl StructuralPartialEq for TopologyDocument
Auto Trait Implementations§
impl Freeze for TopologyDocument
impl RefUnwindSafe for TopologyDocument
impl Send for TopologyDocument
impl Sync for TopologyDocument
impl Unpin for TopologyDocument
impl UnsafeUnpin for TopologyDocument
impl UnwindSafe for TopologyDocument
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.