#[repr(C)]pub struct NetConn_NetConnCallback {
pub onNetworkAvailable: OH_NetConn_NetworkAvailable,
pub onNetCapabilitiesChange: OH_NetConn_NetCapabilitiesChange,
pub onConnetionProperties: OH_NetConn_NetConnectionPropertiesChange,
pub onNetLost: OH_NetConn_NetLost,
pub onNetUnavailable: OH_NetConn_NetUnavailable,
pub onNetBlockStatusChange: OH_NetConn_NetBlockStatusChange,
}Expand description
@brief Defines the network connection callbacks.
@since 12 @version 1.0
Fields§
§onNetworkAvailable: OH_NetConn_NetworkAvailableCallback for network available
onNetCapabilitiesChange: OH_NetConn_NetCapabilitiesChangeCallback for network capabilities changed
onConnetionProperties: OH_NetConn_NetConnectionPropertiesChangeCallback for network connection properties changed
onNetLost: OH_NetConn_NetLostCallback for network lost
Callback for network unavailable, this function invoked while network can not be available in given timeout
onNetBlockStatusChange: OH_NetConn_NetBlockStatusChangeCallback for network blocked status changed
Trait Implementations§
Source§impl Clone for NetConn_NetConnCallback
impl Clone for NetConn_NetConnCallback
Source§fn clone(&self) -> NetConn_NetConnCallback
fn clone(&self) -> NetConn_NetConnCallback
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 moreSource§impl Debug for NetConn_NetConnCallback
impl Debug for NetConn_NetConnCallback
impl Copy for NetConn_NetConnCallback
Auto Trait Implementations§
impl Freeze for NetConn_NetConnCallback
impl RefUnwindSafe for NetConn_NetConnCallback
impl Send for NetConn_NetConnCallback
impl Sync for NetConn_NetConnCallback
impl Unpin for NetConn_NetConnCallback
impl UnsafeUnpin for NetConn_NetConnCallback
impl UnwindSafe for NetConn_NetConnCallback
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