pub struct ManagedLease {
pub lease_id: i64,
/* private fields */
}Expand description
Managed lease instance that will keep the lease alive until it is dropped.
See ManagedLeaseFactory::new_lease for more information.
Fields§
§lease_id: i64Implementations§
Source§impl ManagedLease
impl ManagedLease
pub fn lease_id(&self) -> i64
pub fn get_lease_expire_notify(&self) -> LeaseExpiredNotify
pub async fn is_alive(&self) -> Result<bool, Error>
pub fn get_weak(&self) -> ManagedLeaseWeak
Auto Trait Implementations§
impl !Freeze for ManagedLease
impl !RefUnwindSafe for ManagedLease
impl !UnwindSafe for ManagedLease
impl Send for ManagedLease
impl Sync for ManagedLease
impl Unpin for ManagedLease
impl UnsafeUnpin for ManagedLease
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request