pub struct NetworkConnection { /* private fields */ }Implementations§
Source§impl NetworkConnection
impl NetworkConnection
pub fn type_id() -> u64
pub fn with_service_id(service_id: &str) -> Result<Self>
pub fn with_service_id_and_callback<F>( service_id: &str, callback: F, ) -> Result<Self>
pub fn copy_user_preferences() -> Result<NetworkConnectionUserPreferences>
pub fn service_id(&self) -> Result<Option<String>>
pub fn status(&self) -> NetworkConnectionStatus
pub fn extended_status(&self) -> Option<PropertyList>
pub fn statistics(&self) -> Option<PropertyList>
pub fn user_options(&self) -> Option<PropertyList>
pub fn start( &self, user_options: Option<&PropertyList>, linger: bool, ) -> Result<()>
pub fn stop(&self, force_disconnect: bool) -> Result<()>
pub fn schedule_with_run_loop_current(&self) -> Result<()>
pub fn unschedule_from_run_loop_current(&self) -> Result<()>
pub fn set_dispatch_queue_global(&self) -> Result<()>
pub fn clear_dispatch_queue(&self) -> Result<()>
Trait Implementations§
Source§impl Clone for NetworkConnection
impl Clone for NetworkConnection
Source§fn clone(&self) -> NetworkConnection
fn clone(&self) -> NetworkConnection
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 NetworkConnection
impl RefUnwindSafe for NetworkConnection
impl !Send for NetworkConnection
impl !Sync for NetworkConnection
impl Unpin for NetworkConnection
impl UnsafeUnpin for NetworkConnection
impl UnwindSafe for NetworkConnection
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