pub enum ProviderRequest {
StreamSocket {
server: ServerEnd<StreamSocketMarker>,
data: Socket,
responder: ProviderStreamSocketResponder,
},
GetCid {
responder: ProviderGetCidResponder,
},
#[non_exhaustive] _UnknownMethod {
ordinal: u64,
control_handle: ProviderControlHandle,
method_type: MethodType,
},
}Variants§
StreamSocket
Create a new virtio socket in stream mode.
GetCid
Query the current context id of the system. The local CID is should not
necessary in interactions with the same device; instead you may pass
VMADDR_CID_LOCAL, which will alias to local CID this returns. The cid returned
by this method is useful for debugging or if you have some other communication
channel to a different host and you would like to send them your CID to then
establish a vsock connection on.
Fields
§
responder: ProviderGetCidResponder#[non_exhaustive]_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: ProviderControlHandle§
method_type: MethodTypeImplementations§
Source§impl ProviderRequest
impl ProviderRequest
pub fn into_stream_socket( self, ) -> Option<(ServerEnd<StreamSocketMarker>, Socket, ProviderStreamSocketResponder)>
pub fn into_get_cid(self) -> Option<ProviderGetCidResponder>
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 ProviderRequest
impl !RefUnwindSafe for ProviderRequest
impl Send for ProviderRequest
impl Sync for ProviderRequest
impl Unpin for ProviderRequest
impl !UnwindSafe for ProviderRequest
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