pub enum RouterStatus {
Pending,
Assigned(AssignedDeviceNames),
}Variants§
Pending
Nothing has been done.
Assigned(AssignedDeviceNames)
Network device names have been assigned.
Network device names can be vulnerable to name collisions, which must be prevented. As all Router related side-effects take place on a single node, the L3 network controller is responsible to find and reserve free network device names.
Note: Another option would be to limit the length of router names so that we can directly derive device names (with some SC specific prefix).
TODO Can we use this with the multi-node setup? Do we need any changes?
- maybe just leave the strings empty if we dont need them.
Trait Implementations§
Source§impl Clone for RouterStatus
impl Clone for RouterStatus
Source§fn clone(&self) -> RouterStatus
fn clone(&self) -> RouterStatus
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RouterStatus
impl Debug for RouterStatus
Source§impl Default for RouterStatus
impl Default for RouterStatus
Source§fn default() -> RouterStatus
fn default() -> RouterStatus
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RouterStatus
impl<'de> Deserialize<'de> for RouterStatus
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for RouterStatus
impl Ord for RouterStatus
Source§fn cmp(&self, other: &RouterStatus) -> Ordering
fn cmp(&self, other: &RouterStatus) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for RouterStatus
impl PartialEq for RouterStatus
Source§impl PartialOrd for RouterStatus
impl PartialOrd for RouterStatus
Source§impl Serialize for RouterStatus
impl Serialize for RouterStatus
impl Eq for RouterStatus
impl StructuralPartialEq for RouterStatus
Auto Trait Implementations§
impl Freeze for RouterStatus
impl RefUnwindSafe for RouterStatus
impl Send for RouterStatus
impl Sync for RouterStatus
impl Unpin for RouterStatus
impl UnwindSafe for RouterStatus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.