pub enum SpeedtestRequest {
Ping {
responder: SpeedtestPingResponder,
},
SocketUp {
socket: Socket,
params: TransferParams,
responder: SpeedtestSocketUpResponder,
},
SocketDown {
socket: Socket,
params: TransferParams,
responder: SpeedtestSocketDownResponder,
},
_UnknownMethod {
ordinal: u64,
control_handle: SpeedtestControlHandle,
method_type: MethodType,
},
}
Variants§
Ping
No-op, server responds immediately.
Fields
§
responder: SpeedtestPingResponder
SocketUp
Server writes data into the provided zircon socket and reports stats.
SocketDown
Server reads data from the provided zircon socket and reports stats.
_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: SpeedtestControlHandle
§
method_type: MethodType
Implementations§
Source§impl SpeedtestRequest
impl SpeedtestRequest
pub fn into_ping(self) -> Option<SpeedtestPingResponder>
pub fn into_socket_up( self, ) -> Option<(Socket, TransferParams, SpeedtestSocketUpResponder)>
pub fn into_socket_down( self, ) -> Option<(Socket, TransferParams, SpeedtestSocketDownResponder)>
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 SpeedtestRequest
impl !RefUnwindSafe for SpeedtestRequest
impl Send for SpeedtestRequest
impl Sync for SpeedtestRequest
impl Unpin for SpeedtestRequest
impl !UnwindSafe for SpeedtestRequest
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