pub struct ServerDeviceDefinitionBuilder { /* private fields */ }Implementations§
Source§impl ServerDeviceDefinitionBuilder
impl ServerDeviceDefinitionBuilder
pub fn new(name: &str, id: &Uuid) -> Self
pub fn from_base( value: &ServerDeviceDefinition, id: Uuid, with_features: bool, ) -> Self
pub fn from_user(value: &ServerDeviceDefinition) -> Self
pub fn id(&mut self, id: Uuid) -> &mut Self
pub fn base_id(&mut self, id: Uuid) -> &mut Self
Sourcepub fn name(&mut self, name: &str) -> &mut Self
pub fn name(&mut self, name: &str) -> &mut Self
Sets the canonical (hardware-reported) device name; display_name is the user override and is set separately.
pub fn display_name(&mut self, name: &Option<String>) -> &mut Self
pub fn protocol_variant(&mut self, variant: &str) -> &mut Self
pub fn message_gap_ms(&mut self, gap: Option<u32>) -> &mut Self
pub fn allow(&mut self, allow: bool) -> &mut Self
pub fn deny(&mut self, deny: bool) -> &mut Self
pub fn index(&mut self, index: u32) -> &mut Self
pub fn add_feature(&mut self, feature: &ServerDeviceFeature) -> &mut Self
pub fn replace_feature(&mut self, feature: &ServerDeviceFeature) -> &mut Self
pub fn finish(&self) -> ServerDeviceDefinition
Trait Implementations§
Auto Trait Implementations§
impl Forget for ServerDeviceDefinitionBuilder
impl Freeze for ServerDeviceDefinitionBuilder
impl Move for ServerDeviceDefinitionBuilder
impl RefUnwindSafe for ServerDeviceDefinitionBuilder
impl Send for ServerDeviceDefinitionBuilder
impl Sync for ServerDeviceDefinitionBuilder
impl Unpin for ServerDeviceDefinitionBuilder
impl UnsafeUnpin for ServerDeviceDefinitionBuilder
impl UnwindSafe for ServerDeviceDefinitionBuilder
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