pub enum ConnectionRequest {
Shutdown {
control_handle: ConnectionControlHandle,
},
SendVmo {
vmo: Vmo,
off: u64,
len: u64,
responder: ConnectionSendVmoResponder,
},
}
Expand description
Interface for manipulating the state of an active connection.
Variants§
Shutdown
Trigger asynchronous shutdown. The underlying channel will be closed once shutdown is complete. Shutdown has an implicit barrier as any already queued sends will complete, but any additional sends will generate errors
Fields
§
control_handle: ConnectionControlHandle
SendVmo
Send a VMO. The reply indicates that the VMO send has finished and that data may be queued on the socket again without causing races.
Implementations§
source§impl ConnectionRequest
impl ConnectionRequest
pub fn into_shutdown(self) -> Option<ConnectionControlHandle>
pub fn into_send_vmo( self ) -> Option<(Vmo, u64, u64, ConnectionSendVmoResponder)>
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 ConnectionRequest
impl !RefUnwindSafe for ConnectionRequest
impl Send for ConnectionRequest
impl Sync for ConnectionRequest
impl Unpin for ConnectionRequest
impl !UnwindSafe for ConnectionRequest
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