Struct server_fn_macro::ServerContext
source · pub struct ServerContext {
pub ty: Ident,
pub path: Path,
}
Expand description
Describes the custom context from the server that passed to the server function. Optionally, the first argument of a server function can be a custom context of this type. This context can be used to access the server’s state within the server function.
Fields§
§ty: Ident
The type of the context.
path: Path
The path to the context type. Used to reference the context type in the generated code.
Auto Trait Implementations§
impl RefUnwindSafe for ServerContext
impl !Send for ServerContext
impl !Sync for ServerContext
impl Unpin for ServerContext
impl UnwindSafe for ServerContext
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