pub enum DefaultNetworkRequest {
Update {
payload: DefaultNetworkUpdateRequest,
responder: DefaultNetworkUpdateResponder,
},
_UnknownMethod {
ordinal: u64,
control_handle: DefaultNetworkControlHandle,
method_type: MethodType,
},
}
Expand description
Protocol to allow socket-proxy
to report changes in default network and
its associated socket marks. Only one connection to this protocol is
supported at once. If a second connection is made it will be shut down with
a CONNECTION_ABORTED
error
Variants§
Update
Update the current default network.
_UnknownMethod
An interaction was received which does not match any known method.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§
control_handle: DefaultNetworkControlHandle
§
method_type: MethodType
Implementations§
Source§impl DefaultNetworkRequest
impl DefaultNetworkRequest
pub fn into_update( self, ) -> Option<(DefaultNetworkUpdateRequest, DefaultNetworkUpdateResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DefaultNetworkRequest
impl !RefUnwindSafe for DefaultNetworkRequest
impl Send for DefaultNetworkRequest
impl Sync for DefaultNetworkRequest
impl Unpin for DefaultNetworkRequest
impl !UnwindSafe for DefaultNetworkRequest
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