pub enum ControlRequest {
DisconnectIp {
payload: ControlDisconnectIpRequest,
responder: ControlDisconnectIpResponder,
},
}
Expand description
Provides control operations on sockets.
Variants§
DisconnectIp
Disconnect the socket matched by the provided matchers. See
Diagnostics.IterateIp
for matcher semantics.
Disconnecting a socket depends on the transport protocol. In all cases,
all further operations on the socket will return ECONNABORTED
:
- UDP: the behavior is equivalent to calling
fuchsia.posix.socket/*.Disconnect
. Any destination port and address, and bound device are removed. - TCP LISTEN state: TCP moves to state CLOSE. All non-accepted sockets are closed and an RST is sent to the peer.
- TCP all other states: The TCP connection is put in state CLOSE and an RST is sent to the remote peer, if required.
If no filters are specified, or the provided filters match all sockets, an error is returned and no action is taken.
Implementations§
Source§impl ControlRequest
impl ControlRequest
pub fn into_disconnect_ip( self, ) -> Option<(ControlDisconnectIpRequest, ControlDisconnectIpResponder)>
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 ControlRequest
impl !RefUnwindSafe for ControlRequest
impl Send for ControlRequest
impl Sync for ControlRequest
impl Unpin for ControlRequest
impl !UnwindSafe for ControlRequest
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