pub trait LessorServerHandler<___T: Transport = Channel> {
// Required method
fn lease(
&mut self,
request: Request<Lease, ___T>,
responder: Responder<Lease, ___T>,
) -> impl Future<Output = ()> + Send;
// Provided method
fn on_unknown_interaction(
&mut self,
ordinal: u64,
) -> impl Future<Output = ()> + Send { ... }
}Expand description
A server handler for the Lessor protocol.
See Lessor for more details.
Required Methods§
Sourcefn lease(
&mut self,
request: Request<Lease, ___T>,
responder: Responder<Lease, ___T>,
) -> impl Future<Output = ()> + Send
fn lease( &mut self, request: Request<Lease, ___T>, responder: Responder<Lease, ___T>, ) -> impl Future<Output = ()> + Send
Request made to indicate the client wants the element raised to the given level. When the call returns this does not mean the corresponding element is at the requested level, only that the requested level is valid and request is being worked on.
Fulfilling the request will raise the level of all the level’s direct
and transitive power dependencies to their required levels. When
LeaseControl.WatchStatus reports LeaseStatus::SATISFIED this means
given element is at the level specified by the lease.
Requesting an invalid level returns LeaseError::INVALID_LEVEL.
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.