pub enum CentralState {
Absent,
PoweredOff,
PoweredOn,
Unrecognized(String),
}Expand description
Indicates the various states of Central.
Variants§
Absent
absent
PoweredOff
powered-off
PoweredOn
powered-on
Unrecognized(String)
A value this vendored schema does not list. Chrome adds values ahead of the published protocol, so an unrecognised one is kept as it arrived rather than failing the payload it came in.
Trait Implementations§
Source§impl Clone for CentralState
impl Clone for CentralState
Source§impl Debug for CentralState
impl Debug for CentralState
Source§impl<'de> Deserialize<'de> for CentralState
impl<'de> Deserialize<'de> for CentralState
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
impl Eq for CentralState
Source§impl Hash for CentralState
impl Hash for CentralState
Source§impl PartialEq for CentralState
impl PartialEq for CentralState
Source§impl Serialize for CentralState
impl Serialize for CentralState
impl StructuralPartialEq for CentralState
Auto Trait Implementations§
impl Forget for CentralState
impl Freeze for CentralState
impl RefUnwindSafe for CentralState
impl Send for CentralState
impl Sync for CentralState
impl Unpin for CentralState
impl UnsafeUnpin for CentralState
impl UnwindSafe for CentralState
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