pub struct ServerState {
pub content_resolver: Arc<dyn ContentResolver>,
pub limits: ExecutionLimits,
pub content_root: PathBuf,
}Fields§
§content_resolver: Arc<dyn ContentResolver>§limits: ExecutionLimits§content_root: PathBufImplementations§
Source§impl ServerState
impl ServerState
Sourcepub fn from_config(config: &ServerConfig) -> Result<Self>
pub fn from_config(config: &ServerConfig) -> Result<Self>
§Errors
Returns an error if the content root path cannot be canonicalized.
Trait Implementations§
Source§impl Clone for ServerState
impl Clone for ServerState
Source§fn clone(&self) -> ServerState
fn clone(&self) -> ServerState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ServerState
impl !RefUnwindSafe for ServerState
impl Send for ServerState
impl Sync for ServerState
impl Unpin for ServerState
impl UnsafeUnpin for ServerState
impl !UnwindSafe for ServerState
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