[−][src]Struct huelib::config::Modifier
Struct for modifying configuration attributes.
Methods
impl Modifier
[src]
pub fn new() -> Self
[src]
Creates a new modifier.
pub fn is_empty(&self) -> bool
[src]
Whether all attributes are None
.
pub fn name(self, value: &str) -> Self
[src]
Sets the name of the bridge.
pub fn ip_address(self, value: IpAddr) -> Self
[src]
Sets the ip address of the bridge.
pub fn netmask(self, value: &str) -> Self
[src]
Sets the network mask of the bridge.
pub fn gateway(self, value: IpAddr) -> Self
[src]
Sets the gateway ip address of the bridge.
pub fn dhcp(self, value: bool) -> Self
[src]
Sets whether the ip address of the bridge is obtained with DHCP.
pub fn proxy_port(self, value: u16) -> Self
[src]
Sets the proxy port of the bridge. If set to 0 then a proxy is not being used.
pub fn proxy_address(self, value: Option<IpAddr>) -> Self
[src]
Sets the proxy address of the bridge. If set to None
then a proxy is not being used.
pub fn linkbutton(self, value: bool) -> Self
[src]
Indicates whether the link button has been pressed within the last 30 seconds. Writing is only allowed for portal access via cloud application_key.
pub fn touchlink(self) -> Self
[src]
Starts a touchlink procedure which adds the closest lamp (within range) to the ZigBee network. You can then search for new lights and the lamp will show up in the bridge.
pub fn zigbee_channel(self, value: u8) -> Self
[src]
Sets the wireless frequency channel used by the bridge. It can take values of 11, 15, 20 or 25.
pub fn current_time(self, value: &str) -> Self
[src]
Sets the current time of the bridge in UTC.
pub fn timezone(self, value: &str) -> Self
[src]
Sets the timezone of the bridge.
Trait Implementations
impl Clone for Modifier
[src]
impl Debug for Modifier
[src]
impl Default for Modifier
[src]
impl Eq for Modifier
[src]
impl PartialEq<Modifier> for Modifier
[src]
impl Serialize for Modifier
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for Modifier
[src]
impl StructuralPartialEq for Modifier
[src]
Auto Trait Implementations
impl RefUnwindSafe for Modifier
impl Send for Modifier
impl Sync for Modifier
impl Unpin for Modifier
impl UnwindSafe for Modifier
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,