pub struct NetworkProtocol { /* private fields */ }Implementations§
Source§impl NetworkProtocol
impl NetworkProtocol
pub fn type_id() -> u64
pub fn configuration(&self) -> Option<PropertyList>
pub fn is_enabled(&self) -> bool
pub fn protocol_type(&self) -> Option<String>
pub fn set_configuration(&self, value: &PropertyList) -> Result<()>
pub fn set_enabled(&self, enabled: bool) -> Result<()>
Trait Implementations§
Source§impl Clone for NetworkProtocol
impl Clone for NetworkProtocol
Source§fn clone(&self) -> NetworkProtocol
fn clone(&self) -> NetworkProtocol
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for NetworkProtocol
impl RefUnwindSafe for NetworkProtocol
impl !Send for NetworkProtocol
impl !Sync for NetworkProtocol
impl Unpin for NetworkProtocol
impl UnsafeUnpin for NetworkProtocol
impl UnwindSafe for NetworkProtocol
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