pub struct Prepared {
pub cfg: Config,
pub state: Shared,
pub addr: SocketAddr,
}Expand description
Everything a server needs before it can serve.
Fields§
§cfg: Config§state: Shared§addr: SocketAddrAuto Trait Implementations§
impl !RefUnwindSafe for Prepared
impl !UnwindSafe for Prepared
impl Forget for Prepared
impl Freeze for Preparedwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
PhantomData<RouteConfig>: Freeze,
PhantomData<PathBuf>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
*const LeafNode<String, String> is !null: Freeze,
PhantomData<Box<(String, String)>>: Freeze,
PhantomData<Spec>: Freeze,
*const LeafNode<String, BotConfig> is !null: Freeze,
PhantomData<Box<(String, BotConfig)>>: Freeze,
*const ArcInner<AppState> is !null: Freeze,
PhantomData<ArcInner<AppState>>: Freeze,
impl Move for Prepared
impl Send for Preparedwhere
RawVecInner: Send,
NodeRef<Owned, String, Value, LeafOrInternal>: Send,
BoxRaw<(String, Value)>: Send,
NodeRef<Owned, String, Value, LeafOrInternal>: Send,
BoxRaw<(String, Value)>: Send,
NodeRef<Owned, String, String, LeafOrInternal>: Send,
BoxRaw<(String, String)>: Send,
NodeRef<Owned, String, Policy, LeafOrInternal>: Send,
BoxRaw<(String, Policy)>: Send,
NodeRef<Owned, String, BotConfig, LeafOrInternal>: Send,
BoxRaw<(String, BotConfig)>: Send,
Arc<AppState>: Send,
impl Sync for Preparedwhere
RawVecInner: Sync,
NodeRef<Owned, String, Value, LeafOrInternal>: Sync,
BoxRaw<(String, Value)>: Sync,
NodeRef<Owned, String, Value, LeafOrInternal>: Sync,
BoxRaw<(String, Value)>: Sync,
NodeRef<Owned, String, String, LeafOrInternal>: Sync,
BoxRaw<(String, String)>: Sync,
NodeRef<Owned, String, Policy, LeafOrInternal>: Sync,
BoxRaw<(String, Policy)>: Sync,
NodeRef<Owned, String, BotConfig, LeafOrInternal>: Sync,
BoxRaw<(String, BotConfig)>: Sync,
Arc<AppState>: Sync,
impl Unpin for Preparedwhere
*const u8 is !null: Unpin,
*const LeafNode<String, Value> is !null: Unpin,
Box<(String, Value)>: Unpin,
*const LeafNode<String, Value> is !null: Unpin,
Box<(String, Value)>: Unpin,
*const LeafNode<String, String> is !null: Unpin,
Box<(String, String)>: Unpin,
*const LeafNode<String, Policy> is !null: Unpin,
Box<(String, Policy)>: Unpin,
*const LeafNode<String, BotConfig> is !null: Unpin,
Box<(String, BotConfig)>: Unpin,
Arc<AppState>: Unpin,
impl UnsafeUnpin for Preparedwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
PhantomData<RouteConfig>: UnsafeUnpin,
PhantomData<PathBuf>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
*const LeafNode<String, String> is !null: UnsafeUnpin,
PhantomData<Box<(String, String)>>: UnsafeUnpin,
PhantomData<Spec>: UnsafeUnpin,
*const LeafNode<String, BotConfig> is !null: UnsafeUnpin,
PhantomData<Box<(String, BotConfig)>>: UnsafeUnpin,
*const ArcInner<AppState> is !null: UnsafeUnpin,
PhantomData<ArcInner<AppState>>: UnsafeUnpin,
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