pub enum LeaseControlRequest {
WatchStatus {
last_status: LeaseStatus,
responder: LeaseControlWatchStatusResponder,
},
_UnknownMethod {
ordinal: u64,
control_handle: LeaseControlControlHandle,
method_type: MethodType,
},
}
Expand description
Provides lease-scoped access to actions that can be taken on a lease previously acquired via Lessor.Lease. Closing this control channel drops the lease. TODO(https://fxbug.dev/339474151): Switch from a protocol to an eventpair.
Variants§
WatchStatus
Get the current status of the lease. If last_status is UNKNOWN, the call will return immediately with the current status. Otherwise, the call will block until the current status differs from last_status.
_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: LeaseControlControlHandle
§
method_type: MethodType
Implementations§
Source§impl LeaseControlRequest
impl LeaseControlRequest
pub fn into_watch_status( self, ) -> Option<(LeaseStatus, LeaseControlWatchStatusResponder)>
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 LeaseControlRequest
impl !RefUnwindSafe for LeaseControlRequest
impl Send for LeaseControlRequest
impl Sync for LeaseControlRequest
impl Unpin for LeaseControlRequest
impl !UnwindSafe for LeaseControlRequest
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