pub enum PolicyState {
Fresh(TrafficPolicy),
Remembered(TrafficPolicy, String),
Unknown(String),
}Expand description
What is known about the workspace policy for one run.
Variants§
Fresh(TrafficPolicy)
Read from Control Plane just now.
Remembered(TrafficPolicy, String)
Control Plane could not be asked (the reason); this is its last answer.
Unknown(String)
Not known, and why: no Control Plane, no login it accepts, no answer.
Implementations§
Source§impl PolicyState
impl PolicyState
pub fn policy(&self) -> Option<TrafficPolicy>
Trait Implementations§
Source§impl Clone for PolicyState
impl Clone for PolicyState
Source§impl Debug for PolicyState
impl Debug for PolicyState
impl Eq for PolicyState
Source§impl PartialEq for PolicyState
impl PartialEq for PolicyState
impl StructuralPartialEq for PolicyState
Auto Trait Implementations§
impl Forget for PolicyState
impl Freeze for PolicyState
impl Move for PolicyState
impl RefUnwindSafe for PolicyState
impl Send for PolicyState
impl Sync for PolicyState
impl Unpin for PolicyState
impl UnsafeUnpin for PolicyState
impl UnwindSafe for PolicyState
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,
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.