pub enum ConnectionRequest {
Shutdown {
control_handle: ConnectionControlHandle,
},
}
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
Implementations§
Source§impl ConnectionRequest
impl ConnectionRequest
pub fn into_shutdown(self) -> Option<ConnectionControlHandle>
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