pub struct ProcedureContext<Context> {
pub server_context: Arc<Context>,
pub transport_id: u32,
}Expand description
The context type received by every procedure
Fields§
§server_context: Arc<Context>The context given to the RpcServer
transport_id: u32The ID given to the Transport which is calling the procedure
Auto Trait Implementations§
impl<Context> Freeze for ProcedureContext<Context>
impl<Context> RefUnwindSafe for ProcedureContext<Context>where
Context: RefUnwindSafe,
impl<Context> Send for ProcedureContext<Context>
impl<Context> Sync for ProcedureContext<Context>
impl<Context> Unpin for ProcedureContext<Context>
impl<Context> UnwindSafe for ProcedureContext<Context>where
Context: RefUnwindSafe,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more