pub struct NewDeviceConfiguration { /* private fields */ }Implementations§
Source§impl NewDeviceConfiguration
impl NewDeviceConfiguration
pub fn new(device_id: String) -> Self
pub fn device_id(self, device_id: String) -> Self
pub fn get_device_id(&self) -> &String
pub fn name(self, name: String) -> Self
pub fn get_name(&self) -> &Option<String>
pub fn addresses(self, addresses: Vec<String>) -> Self
pub fn get_addresses(&self) -> &Option<Vec<String>>
pub fn compression(self, compression: Compression) -> Self
pub fn get_compression(&self) -> &Option<Compression>
pub fn cert_name(self, cert_name: String) -> Self
pub fn get_cert_name(&self) -> &Option<String>
pub fn introducer(self, introducer: bool) -> Self
pub fn get_introducer(&self) -> &Option<bool>
pub fn skip_introduction_removals( self, skip_introduction_removals: bool, ) -> Self
pub fn get_skip_introduction_removals(&self) -> &Option<bool>
pub fn introduced_by(self, introduced_by: String) -> Self
pub fn get_introduced_by(&self) -> &Option<String>
pub fn paused(self, paused: bool) -> Self
pub fn get_paused(&self) -> &Option<bool>
pub fn allowed_networks(self, allowed_networks: Vec<String>) -> Self
pub fn get_allowed_networks(&self) -> &Option<Vec<String>>
pub fn auto_accept_folders(self, auto_accept_folders: bool) -> Self
pub fn get_auto_accept_folders(&self) -> &Option<bool>
pub fn max_send_kbps(self, max_send_kbps: i64) -> Self
pub fn get_max_send_kbps(&self) -> &Option<i64>
pub fn max_recv_kbps(self, max_recv_kbps: i64) -> Self
pub fn get_max_recv_kbps(&self) -> &Option<i64>
pub fn ignored_folders(self, ignored_folders: Vec<ObservedFolder>) -> Self
pub fn get_ignored_folders(&self) -> &Option<Vec<ObservedFolder>>
pub fn max_request_ki_b(self, max_request_ki_b: i64) -> Self
pub fn get_max_request_ki_b(&self) -> &Option<i64>
pub fn untrusted(self, untrusted: bool) -> Self
pub fn get_untrusted(&self) -> &Option<bool>
pub fn remote_gui_port(self, remote_gui_port: i64) -> Self
pub fn get_remote_gui_port(&self) -> &Option<i64>
pub fn num_connections(self, num_connections: i64) -> Self
pub fn get_num_connections(&self) -> &Option<i64>
Trait Implementations§
Source§impl Clone for NewDeviceConfiguration
impl Clone for NewDeviceConfiguration
Source§fn clone(&self) -> NewDeviceConfiguration
fn clone(&self) -> NewDeviceConfiguration
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NewDeviceConfiguration
impl Debug for NewDeviceConfiguration
Source§impl From<AddedPendingDeviceChanged> for NewDeviceConfiguration
impl From<AddedPendingDeviceChanged> for NewDeviceConfiguration
Source§fn from(value: AddedPendingDeviceChanged) -> Self
fn from(value: AddedPendingDeviceChanged) -> Self
Converts to this type from the input type.
Source§impl From<DeviceConfiguration> for NewDeviceConfiguration
impl From<DeviceConfiguration> for NewDeviceConfiguration
Source§fn from(value: DeviceConfiguration) -> Self
fn from(value: DeviceConfiguration) -> Self
Converts to this type from the input type.
Source§impl PartialEq for NewDeviceConfiguration
impl PartialEq for NewDeviceConfiguration
Source§impl Serialize for NewDeviceConfiguration
impl Serialize for NewDeviceConfiguration
impl StructuralPartialEq for NewDeviceConfiguration
Auto Trait Implementations§
impl Freeze for NewDeviceConfiguration
impl RefUnwindSafe for NewDeviceConfiguration
impl Send for NewDeviceConfiguration
impl Sync for NewDeviceConfiguration
impl Unpin for NewDeviceConfiguration
impl UnwindSafe for NewDeviceConfiguration
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)